TS Fixes
This commit is contained in:
@@ -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" });
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user