Skip to content

Commit

Permalink
Update wallet.controller.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g authored Nov 12, 2023
1 parent 38e36d0 commit 7da7b1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/features/wallet/wallet.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand All @@ -301,6 +303,8 @@ export class WalletController {
counter++;
}
});
console.log(counter);
console.log(body);

if (counter - body.arrivedColumnNumber === 0) {
throw new WalletExceptionFilter(
Expand Down

0 comments on commit 7da7b1a

Please sign in to comment.