From 572d56413516385ad1c74936a0ffba874c83335c Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sun, 9 Nov 2025 16:12:18 +0100 Subject: [PATCH] TS Fixes --- src/plugins/auth.ts | 4 ++-- src/routes/profiles.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/auth.ts b/src/plugins/auth.ts index 5de9635..a62e761 100644 --- a/src/plugins/auth.ts +++ b/src/plugins/auth.ts @@ -42,7 +42,7 @@ export default fp(async (server: FastifyInstance) => { .maybeSingle(); if (roleError) { - server.log.error("Error fetching user role", roleError); + console.log("Error fetching user role", roleError); return reply.code(500).send({ error: "Failed to load user role" }); } @@ -59,7 +59,7 @@ export default fp(async (server: FastifyInstance) => { .eq("role_id", roleId); if (permsError) { - server.log.error("Failed to load permissions", permsError); + console.log("Failed to load permissions", permsError); return reply.code(500).send({ error: "Permission lookup failed" }); } diff --git a/src/routes/profiles.ts b/src/routes/profiles.ts index bb535fb..17e9158 100644 --- a/src/routes/profiles.ts +++ b/src/routes/profiles.ts @@ -33,7 +33,7 @@ export default async function authProfilesRoutes(server: FastifyInstance) { } const { id } = req.params as { id: string }; - const body = req.body + const body = req.body as any delete body.full_name