Skip to content

Commit

Permalink
refactor: remove optional types from ILedgerTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Nov 10, 2023
1 parent c7bbeea commit 18d764e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/api/src/services/ledger/schema.types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface ILedgerTransaction {
_id?: ObjectId
_id: ObjectId
credit: number
debit: number
meta?: { [k: string]: unknown }
Expand All @@ -10,8 +10,8 @@ interface ILedgerTransaction {
memo: string
_journal: ObjectId
timestamp: Date
voided?: boolean
void_reason?: string
voided: boolean
void_reason: string
_original_journal?: ObjectId

hash?: string
Expand Down
1 change: 1 addition & 0 deletions core/api/test/unit/domain/ledger/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ describe("LedgerService", () => {
_journal: toObjectId(sampleJournalId),
timestamp,
voided: false,
void_reason: "",

hash: "hash",
txid: "txid",
Expand Down

0 comments on commit 18d764e

Please sign in to comment.