From 7da7b1a6c9b75d1a2c49824195718dbd9f337994 Mon Sep 17 00:00:00 2001 From: Ehsan G <60781475+ehsan-g@users.noreply.github.com> Date: Sun, 12 Nov 2023 10:55:00 +0330 Subject: [PATCH] Update wallet.controller.ts --- src/features/wallet/wallet.controller.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/features/wallet/wallet.controller.ts b/src/features/wallet/wallet.controller.ts index f1cc78242..985badfd5 100644 --- a/src/features/wallet/wallet.controller.ts +++ b/src/features/wallet/wallet.controller.ts @@ -288,7 +288,9 @@ export class WalletController { const purchasedNeeds = await this.needService.getPurchasedNeedsCount( flaskUserId, ); - purchasedNeeds.forEach((need) => { + purchasedNeeds.forEach((need) => { + console.log(need); + if ( userTickets.find( (t) => @@ -301,6 +303,8 @@ export class WalletController { counter++; } }); + console.log(counter); + console.log(body); if (counter - body.arrivedColumnNumber === 0) { throw new WalletExceptionFilter(