cambio de nombre de recoger a entregar
This commit is contained in:
@@ -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;
|
||||
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user