mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-11 13:57:28 +08:00
logging streak lost
This commit is contained in:
parent
a273372990
commit
e96366e9d3
1 changed files with 1 additions and 0 deletions
|
|
@ -921,6 +921,7 @@ export async function updateStreak(
|
|||
if (isYesterday(streak.lastResultTimestamp)) {
|
||||
streak.length += 1;
|
||||
} else if (!isToday(streak.lastResultTimestamp)) {
|
||||
Logger.logToDb("streak_lost", { streak }, uid);
|
||||
streak.length = 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue