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 87e8d4d commit 1d473e3Copy full SHA for 1d473e3
backend/src/dal/user.ts
@@ -1146,6 +1146,11 @@ export async function updateStreak(
1146
1147
streak.lastResultTimestamp = timestamp;
1148
1149
+ if (user.streak?.hourOffset === 0) {
1150
+ // todo this needs to be removed after a while
1151
+ delete streak.hourOffset;
1152
+ }
1153
+
1154
await getUsersCollection().updateOne({ uid }, { $set: { streak } });
1155
1156
return streak.length;
0 commit comments