Skip to content

Commit

Permalink
temp arrival condition removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Sep 17, 2023
1 parent c62dd4e commit 1e82e0c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/features/wallet/wallet.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -786,7 +786,9 @@ export class WalletController {
@Req() req: Request,
@Param('flaskUserId') flaskUserId: number,
) {

const panelFlaskUserId = Number(req.headers['panelFlaskUserId']);
console.log(panelFlaskUserId);
if (panelFlaskUserId !== Number(flaskUserId)) {
throw new WalletExceptionFilter(401, 'You only can get your signatures');
}
Expand Down

0 comments on commit 1e82e0c

Please sign in to comment.