Skip to content

Commit

Permalink
Increment challenge score when a whitelisted product is ordered & paid
Browse files Browse the repository at this point in the history
…#110

Co-authored-by: Eliott C. <[email protected]>
  • Loading branch information
ithiame and coyotte508 authored Jun 16, 2023
1 parent 50846b2 commit e57e5ed
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/server/orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export async function onOrderPaid(order: Order, session: ClientSession) {
.toArray();
const challenges = await collections.challenges
.find({
mode: 'moneyAmount',
$or: [{beginsAt: {$exists: false}}, {beginsAt: {$lt: new Date()}}]
endsAt: { $gt: new Date() }
})
Expand Down

0 comments on commit e57e5ed

Please sign in to comment.