error carta termino
This commit is contained in:
@@ -14,9 +14,11 @@ const cartaTermino = async (body, file) => {
|
||||
switch (res.idStatus) {
|
||||
case 4:
|
||||
case 8:
|
||||
let path = `./server/uploads/${
|
||||
(validar.validar(file, 'El archivo'), 1000)
|
||||
}`;
|
||||
let path = `./server/uploads/${validar.validar(
|
||||
file,
|
||||
'El archivo',
|
||||
1000
|
||||
)}`;
|
||||
|
||||
return drive.uploadFile(
|
||||
path,
|
||||
@@ -48,10 +50,7 @@ const cartaTermino = async (body, file) => {
|
||||
}
|
||||
})
|
||||
.then((res) => {
|
||||
return Servicio.update(
|
||||
{ cartaTermino: res },
|
||||
{ where: { idServicio } }
|
||||
);
|
||||
return Servicio.update({ cartaTermino: res }, { where: { idServicio } });
|
||||
})
|
||||
.then((res) => {
|
||||
return validar.validarPreTermino(idServicio);
|
||||
|
||||
Reference in New Issue
Block a user