Skip to content

Commit

Permalink
Attempt closest challenge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
neketka committed May 2, 2024
1 parent e769e5f commit f833c46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/event/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ export class EventService {

const closestChallenge = await this.prisma.challenge.findFirstOrThrow({
where: {
eventIndex: 0,
linkedEvent: { id: event.id },
},
orderBy: {
eventIndex: 'asc',
},
});

const progress = await this.prisma.eventTracker.create({
Expand Down

0 comments on commit f833c46

Please sign in to comment.