feat(server): sync Plaid transactions to uncategorized transactions

This commit is contained in:
Ahmed Bouhuolia
2024-03-04 13:42:17 +02:00
parent 9db03350e0
commit f23e8d98f6
10 changed files with 113 additions and 24 deletions

View File

@@ -23,7 +23,7 @@ export default class NewCashflowTransactionController extends BaseController {
const router = Router();
router.get(
'/transactions/uncategorized',
'/transactions/:id/uncategorized',
this.asyncMiddleware(this.getUncategorizedCashflowTransactions),
this.catchServiceErrors
);
@@ -237,10 +237,12 @@ export default class NewCashflowTransactionController extends BaseController {
next: NextFunction
) => {
const { tenantId } = req;
const { id: accountId } = req.params;
try {
const data = await this.cashflowApplication.getUncategorizedTransactions(
tenantId
tenantId,
accountId
);
return res.status(200).send(data);