chore(usuarios): limpiar debug hardcodeado de supervisorNombre
This commit is contained in:
@@ -148,10 +148,6 @@ export async function getSupervisor(req: Request, res: Response, next: NextFunct
|
||||
select: { nombre: true },
|
||||
});
|
||||
supervisorNombre = u?.nombre ?? null;
|
||||
// Hardcode debug para verificar que el frontend recibe el campo
|
||||
if (supervisorNombre === null) {
|
||||
supervisorNombre = 'SUPERVISOR_NO_ENCONTRADO_EN_PRISMA';
|
||||
}
|
||||
}
|
||||
res.json({ supervisorUserId, supervisorNombre });
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user