We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 268587f commit da0a3ffCopy full SHA for da0a3ff
1 file changed
src/utils/firebase.ts
@@ -1273,6 +1273,10 @@ export const updateCalendarDay = async (
1273
return true;
1274
} catch (error) {
1275
console.error('Error updating calendar day:', error);
1276
+ return false;
1277
+ }
1278
+};
1279
+
1280
export const adminUpdateUser = async (userId: string, updates: { role?: 'admin' | 'member'; streakDays?: number }): Promise<boolean> => {
1281
try {
1282
const userRef = doc(db, 'users', userId);
0 commit comments