fix(banking): detarmine if Plaid item is disabled (#585)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user