Skip to content

Commit

Permalink
fix(cronjob): auto end (revert 470a91d )
Browse files Browse the repository at this point in the history
  • Loading branch information
Lil-Ran committed Aug 31, 2024
1 parent 8a6e508 commit 5d5fd26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GZCTF/Services/CronJobService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ await gameNoticeRepository.AddNotice(
}

if (!gameChallenge.IsEnabled)
continue;

if (gameChallenge.EndAt <= DateTimeOffset.Now)
{
gameChallenge.CanSubmit = false;
}
Expand Down

0 comments on commit 5d5fd26

Please sign in to comment.