Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/controllers/prescription.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ class PrescriptionController implements BaseController {
}
// En caso de que no se haya podido crear en andes, se guarda localmente
if (!createAndes) {
console.log('No se pudo crear la prescripción en ANDES, se guarda localmente.');
await newPrescription.save();
allPrescription.push(newPrescription);
}
Expand Down Expand Up @@ -323,7 +324,8 @@ class PrescriptionController implements BaseController {

} catch (e) {
// eslint-disable-next-line no-console
console.error('Error al enviar receta a ANDES:', e);
console.error('Error al enviar receta a ANDES');
sendToAndes = false;
}
return sendToAndes;
};
Expand Down