From e92eccc7d31a3cf61b31adfed1ac1683845f0c01 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sun, 7 Dec 2025 22:45:02 +0100 Subject: [PATCH] TS fixes --- src/routes/auth/auth.ts | 2 ++ src/routes/emailAsUser.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/routes/auth/auth.ts b/src/routes/auth/auth.ts index 5b1d1d9..dd4eb14 100644 --- a/src/routes/auth/auth.ts +++ b/src/routes/auth/auth.ts @@ -198,10 +198,12 @@ export default async function authRoutes(server: FastifyInstance) { const plainPassword = generateRandomPassword(); const passwordHash = await hashPassword(plainPassword); + await server.db .update(authUsers) .set({ passwordHash, + // @ts-ignore mustChangePassword: true, }) .where(eq(authUsers.id, user.id)); diff --git a/src/routes/emailAsUser.ts b/src/routes/emailAsUser.ts index 525fa25..0017688 100644 --- a/src/routes/emailAsUser.ts +++ b/src/routes/emailAsUser.ts @@ -53,6 +53,7 @@ export default async function emailAsUserRoutes(server: FastifyInstance) { await server.db .update(userCredentials) + //@ts-ignore .set(saveData) .where(eq(userCredentials.id, id)) @@ -79,6 +80,7 @@ export default async function emailAsUserRoutes(server: FastifyInstance) { imapSsl: body.imap_ssl, } + //@ts-ignore await server.db.insert(userCredentials).values(insertData) return reply.send({ success: true })