feat(captura): fechas de Obra bloqueadas tras establecerse, solo admin las cambia
This commit is contained in:
@@ -75,6 +75,7 @@ export async function guardarEndpoint(req: Request, res: Response): Promise<void
|
||||
body.campo,
|
||||
body.valor ?? null,
|
||||
usuarioId,
|
||||
req.usuarioToken?.rol ?? '',
|
||||
)
|
||||
res.status(204).end()
|
||||
}
|
||||
@@ -106,6 +107,7 @@ export async function bulkEndpoint(req: Request, res: Response): Promise<void> {
|
||||
body.departamento,
|
||||
body.registros.map((r) => ({ unidad: r.unidad, campo: r.campo, valor: r.valor ?? null })),
|
||||
usuarioId,
|
||||
req.usuarioToken?.rol ?? '',
|
||||
)
|
||||
res.status(204).end()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user