diff --git a/src/transaction/transaction.controller.ts b/src/transaction/transaction.controller.ts index 3bd2522..69151b9 100644 --- a/src/transaction/transaction.controller.ts +++ b/src/transaction/transaction.controller.ts @@ -235,9 +235,9 @@ export class TransactionController { const data = await this.transactionService.getAllDepositReturnToUser( req.user.userId, page, - sender, - startDate, - endDate, + sender == 'null' ? null : sender, + startDate == 'null' ? null : startDate, + endDate == 'null' ? null : endDate, pageSize, );