fix(banking): detarmine if Plaid item is disabled (#585)

This commit is contained in:
Ahmed Bouhuolia
2024-08-11 12:10:15 +02:00
committed by GitHub
parent be8352654e
commit c7c021c969

View File

@@ -83,8 +83,9 @@ export class PlaidWebooks {
webhookCode: string
): Promise<void> {
const { PlaidItem } = this.tenancy.models(tenantId);
const plaidItem = await PlaidItem.query()
.findById(plaidItemId)
.findOne({ plaidItemId })
.throwIfNotFound();
switch (webhookCode) {