We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9507a commit 255fd7fCopy full SHA for 255fd7f
backend/src/api/controllers/result.ts
@@ -541,7 +541,12 @@ export async function addResult(
541
dailyLeaderboardRank <= 10 &&
542
completedEvent.testDuration <= 120
543
) {
544
- await addLog("daily_leaderboard_top_10_result", completedEvent, uid);
+ const now = Date.now();
545
+ const reset = getCurrentDayTimestamp();
546
+ const limit = 6 * 60 * 60 * 1000;
547
+ if (now - reset >= limit) {
548
+ await addLog("daily_leaderboard_top_10_result", completedEvent, uid);
549
+ }
550
}
551
552
0 commit comments