Skip to content

Commit

Permalink
fix(banking): detarmine if Plaid item is disabled (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia authored Aug 11, 2024
1 parent be83526 commit c7c021c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/src/services/Banking/Plaid/PlaidWebhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c7c021c

Please sign in to comment.