restrincciones

This commit is contained in:
xXpuma99Xx
2022-02-20 23:53:10 -06:00
parent 9c321c622f
commit ee27a9db64
4 changed files with 11 additions and 31 deletions
@@ -18,24 +18,6 @@ const historialMultasUsuario = async (body) => {
{
model: Prestamo,
where: { idUsuario },
// include: [
// {
// model: Equipo,
// include: [
// {
// model: Carrito,
// include: [{ model: Modulo }, { model: TipoCarrito }],
// attributes: ['idCarrito', 'carrito'],
// },
// ],
// attributes: [
// 'idEquipo',
// 'numeroSerie',
// 'numeroInventario',
// 'equipo',
// ],
// },
// ],
attributes: ['idPrestamo'],
},
{
-1
View File
@@ -42,7 +42,6 @@ const multar = async (body) => {
})
.then((res) => {
if (!res) throw new Error('No existe esta infracción.');
// Checar si tiene una multa activa, agragar días a multa
gravedad = res.gravedad;
return Prestamo.findOne({
where: { idPrestamo },