feat: pause bank account feeds

This commit is contained in:
Ahmed Bouhuolia
2024-08-04 21:14:05 +02:00
parent fc0240c692
commit f9cf6d325a
8 changed files with 64 additions and 13 deletions

View File

@@ -25,7 +25,10 @@ export class GetAccount {
const { accountRepository } = this.tenancy.repositories(tenantId);
// Find the given account or throw not found error.
const account = await Account.query().findById(accountId).throwIfNotFound();
const account = await Account.query()
.findById(accountId)
.withGraphFetched('plaidItem')
.throwIfNotFound();
const accountsGraph = await accountRepository.getDependencyGraph();