logging streak lost

This commit is contained in:
Miodec 2022-09-28 20:45:46 +02:00
parent a273372990
commit e96366e9d3

View file

@ -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;
}