correiciones

This commit is contained in:
2021-09-02 16:13:16 -05:00
parent 7f44e197e8
commit ded01c50d3
4 changed files with 39 additions and 13 deletions
+1 -1
View File
@@ -2,11 +2,11 @@ const { validarId, validarTexto } = require('../../helper/validar');
const dbPath = '../../db/tablas';
const Reporte = require(`${dbPath}/Reporte`);
const Prestamo = require(`${dbPath}/Prestamo`);
let idEquipo = null;
const reportar = async (body) => {
const idPrestamo = validarId(body.idPrestamo);
const descripcion = validarTexto(body.descripcion, 'La descripción', 500);
let idEquipo = null;
return Prestamo.findOne({ where: { idPrestamo } })
.then((res) => {