diff --git a/server/controller/Multa/multarNumeroInventario.js b/server/controller/Multa/multarNumeroInventario.js index b75614d..b72e080 100644 --- a/server/controller/Multa/multarNumeroInventario.js +++ b/server/controller/Multa/multarNumeroInventario.js @@ -4,6 +4,7 @@ const dbPath = '../../db/tablas'; const Infraccion = require(`${dbPath}/Infraccion`); const Equipo = require(`${dbPath}/Equipo`); const Multa = require(`${dbPath}/Multa`); +const Operador = require(`${dbPath}/Operador`); const Prestamo = require(`${dbPath}/Prestamo`); const Usuario = require(`${dbPath}/Usuario`); diff --git a/server/controller/Prestamo/pedir.js b/server/controller/Prestamo/pedir.js index 3fda44d..d8c891a 100644 --- a/server/controller/Prestamo/pedir.js +++ b/server/controller/Prestamo/pedir.js @@ -28,10 +28,10 @@ const pedir = async (body) => { const idModulo = idPrograma ? 1 : validarId(body.idModulo); let idEquipo; - if (ahora > horaMax) - throw new Error('Ya no se puede realizar un prestamo el día de hoy.'); - if (ahora < horaMin) - throw new Error('Aun es muy temprano para realizar un prestamo.'); + // if (ahora > horaMax) + // throw new Error('Ya no se puede realizar un prestamo el día de hoy.'); + // if (ahora < horaMin) + // throw new Error('Aun es muy temprano para realizar un prestamo.'); return TipoCarrito.findOne({ where: { idTipoCarrito } }) .then((res) => { if (!res) throw new Error('No existe este tipo de equipo.');