chore: fix typing

This commit is contained in:
Ahmed Bouhuolia
2024-08-04 22:20:31 +02:00
parent 647bed5c67
commit 86631ea8c3
4 changed files with 13 additions and 8 deletions

View File

@@ -54,7 +54,8 @@ export class MatchBankTransactions {
const uncategorizedTransactions =
await UncategorizedCashflowTransaction.query()
.whereIn('id', uncategorizedTransactionIds)
.withGraphFetched('matchedBankTransactions');
.withGraphFetched('matchedBankTransactions')
.throwIfNotFound();
// Validates the uncategorized transaction is not already matched.
validateUncategorizedTransactionsNotMatched(uncategorizedTransactions);