mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix(banking): detarmine if Plaid item is disabled (#585)
This commit is contained in:
@@ -83,8 +83,9 @@ export class PlaidWebooks {
|
|||||||
webhookCode: string
|
webhookCode: string
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const { PlaidItem } = this.tenancy.models(tenantId);
|
const { PlaidItem } = this.tenancy.models(tenantId);
|
||||||
|
|
||||||
const plaidItem = await PlaidItem.query()
|
const plaidItem = await PlaidItem.query()
|
||||||
.findById(plaidItemId)
|
.findOne({ plaidItemId })
|
||||||
.throwIfNotFound();
|
.throwIfNotFound();
|
||||||
|
|
||||||
switch (webhookCode) {
|
switch (webhookCode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user