cambio de nombre de recoger a entregar

This commit is contained in:
Lemuel Marquez
2021-05-31 16:01:12 -05:00
parent 829aa5e354
commit e51ecbd260
2 changed files with 5 additions and 5 deletions
@@ -8,7 +8,7 @@ const Operador = require(`${dbPath}/Operador`);
const Prestamo = require(`${dbPath}/Prestamo`);
const TipoCarrito = require(`${dbPath}/TipoCarrito`);
const recoger = async (body) => {
const entregar = async (body) => {
const ahora = moment();
const idPrestamo = validarId(body.idPrestamo);
const idOperadorEntrega = validarId(body.idOperadorEntrega);
@@ -61,4 +61,4 @@ const recoger = async (body) => {
});
};
module.exports = recoger;
module.exports = entregar;
+3 -3
View File
@@ -8,7 +8,7 @@ const historial = require(`${controllerPath}/historial`);
const historialEquipo = require(`${controllerPath}/historialEquipo`);
const historialUsuario = require(`${controllerPath}/historialUsuario`);
const pedir = require(`${controllerPath}/pedir`);
const recoger = require(`${controllerPath}/recoger`);
const entregar = require(`${controllerPath}/entregar`);
const regresar = require(`${controllerPath}/regresar`);
const regresarNumeroInventario = require(`${controllerPath}/regresarNumeroInventario`);
const prestamo = require(`${controllerPath}/prestamo`);
@@ -31,10 +31,10 @@ app.post(
);
app.put(
`${route}/recoger`,
`${route}/entregar`,
// verificaToken,
(req, res) => {
return recoger(req.body)
return entregar(req.body)
.then((data) => {
res.status(200).json(data);
})