From 928e7a51ae411f32a82977f2ea5a52b52d947d4b Mon Sep 17 00:00:00 2001 From: ilham Date: Wed, 5 Jan 2022 13:57:03 +0700 Subject: [PATCH] add: filter ub deoisut return --- src/transaction/transaction.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, );