Skip to content

Commit

Permalink
fix(lottery): ticket lottery shouldn't break the server anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 21, 2023
1 parent 9ca5eb7 commit ff25e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/modules/lottery/buyinlottery.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class BuyInLotteryService implements OnModuleInit {
emCtx.persist(newRecord);
await emCtx.flush();

const winningTicket = await this.buyinTickets.findOne({
const winningTicket = await emCtx.findOne(LotteryBuyInTicket, {
ticketNumber: newRecord.ticketNumber,
createdAt: { $gte: startOfToday() },
});
Expand Down

0 comments on commit ff25e16

Please sign in to comment.