validar nuermo entero

This commit is contained in:
xXpuma99Xx
2022-01-02 15:07:49 -06:00
parent 9560014865
commit 9fc6e4485a
31 changed files with 98 additions and 73 deletions
+4 -1
View File
@@ -9,7 +9,10 @@ const Servicio = require(`${dbPath}/Servicio`);
const Usuario = require(`${dbPath}/Usuario`);
const liberacion = async (body) => {
const idServicio = validar.validarId(body.idServicio);
const idServicio = validar.validarNumeroEntero(
body.idServicio,
'id servicio'
);
const update = { idStatus: 6, fechaLiberacion: moment().format() };
let correo = {};