Skip to content

Commit

Permalink
Fixed draw logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikEmmerich committed Oct 13, 2023
1 parent 1741c76 commit d3f99e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public void draw(final UUID id) {
}
final EventDraw eventDraw = this.eventDrawService.findById(eventType.getEventDrawId());
final OffsetDateTime now = OffsetDateTime.now();
if (!eventDraw.getDrawTime().isAfter(now)) {

if (eventDraw.getDrawTime().isAfter(now)) {
throw new EventDrawTooEarlyException();
}

Expand Down

0 comments on commit d3f99e7

Please sign in to comment.