This commit is contained in:
Andres2908
2022-08-07 14:35:52 -05:00
parent 36377b21b3
commit ea356e9f7d
@@ -66,15 +66,16 @@ const inscripcion = async (body, file) => {
});
})
.then((res) => {
if (file)
if (file) {
fs.renameSync(file.path, file.path + '.' + file.mimetype.split('/')[1]);
agregarRecibo(
folio,
monto,
moment(fechaTicket).format('L'),
numeroCuenta
);
agregarDetalleServicio(monto, numeroCuenta);
agregarRecibo(
folio,
monto,
moment(fechaTicket).format('L'),
numeroCuenta
);
agregarDetalleServicio(monto, numeroCuenta);
}
})
.then((res) => ({
message: `Tu inscripción está sujeta a validación por parte de un operador de CEDETEC, espera mas información en tu correo de Pc-puma.`,