Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
chore: sign in sync updated at value (#1095)
Maximilian Kaske4e4e0acb9b62
diff --git a/apps/web/src/lib/auth/index.ts b/apps/web/src/lib/auth/index.tsindex 6a9e4c0dc..c0ce5061c 100644--- a/apps/web/src/lib/auth/index.ts+++ b/apps/web/src/lib/auth/index.ts@@ -36,6 +36,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({photoUrl: params.profile.picture,// keep the name in syncname: `${params.profile.given_name} ${params.profile.family_name}`,+ updatedAt: new Date(),}).where(eq(user.id, Number(params.user.id))).run();@@ -49,11 +50,21 @@ export const { handlers, signIn, signOut, auth } = NextAuth({.set({name: params.profile.name,photoUrl: String(params.profile.avatar_url),+ updatedAt: new Date(),}).where(eq(user.id, Number(params.user.id))).run();}+ // REMINDER: only used in dev mode+ if (params.account?.provider === "resend") {+ await db+ .update(user)+ .set({ updatedAt: new Date() })+ .where(eq(user.id, Number(params.user.id)))+ .run();+ }+return true;},async session(params) {