From 42bdf14340bc1d55686017294c1da16ed8963489 Mon Sep 17 00:00:00 2001 From: Gbuntu Date: Wed, 20 Sep 2023 11:35:59 +0330 Subject: [PATCH] arrival condition --- src/features/wallet/wallet.controller.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/features/wallet/wallet.controller.ts b/src/features/wallet/wallet.controller.ts index 1eec596ab..c14f45658 100644 --- a/src/features/wallet/wallet.controller.ts +++ b/src/features/wallet/wallet.controller.ts @@ -302,12 +302,12 @@ export class WalletController { } }); - // if (counter - body.arrivedColumnNumber !== 0) { - // throw new WalletExceptionFilter( - // 418, - // 'You have to announce arrivals first!', - // ); - // } + if (counter - body.arrivedColumnNumber !== 0) { + throw new WalletExceptionFilter( + 418, + 'You have to announce arrivals first!', + ); + } const flaskNeed = await this.needService.getFlaskNeed(body.flaskNeedId); const { need, child } = await this.syncService.syncNeed( flaskNeed,