feat: pending transactions table

This commit is contained in:
Ahmed Bouhuolia
2024-08-11 22:51:58 +02:00
parent 9ae5644af9
commit 7054e862d5
9 changed files with 304 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ export class BankAccountsController extends BaseController {
[
query('account_id').optional().isNumeric().toInt(),
query('page').optional().isNumeric().toInt(),
query('page_size').optional().isNumeric().toInt(),
query('page_size').optional().isNumeric().toInt(),
],
this.validationResult,
this.getBankAccountsPendingTransactions.bind(this)
@@ -94,11 +94,13 @@ export class BankAccountsController extends BaseController {
next: NextFunction
) {
const { tenantId } = req;
const query = this.matchedQueryData(req);
try {
const data =
await this.getPendingTransactionsService.getPendingTransactions(
tenantId
tenantId,
query
);
return res.status(200).send(data);
} catch (error) {