This commit is contained in:
2025-11-09 16:12:18 +01:00
parent 75e2f84726
commit 572d564135
2 changed files with 3 additions and 3 deletions

View File

@@ -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" });
}

View File

@@ -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