Skip to content
Open
Show file tree
Hide file tree
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: 1 addition & 3 deletions cda-laboratorio-central/controller/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ export async function postCDA(data: any) {
}
return (error || body);
} catch (error) {
// Suspendemos los logs del post por demasiados registros de 500 - prestación existente
// await log.error('cda-laboratorio-central:postCDA', { error, options, payload: error.response?.body }, error.message, userScheduler);
return error;
await log.error('cda-laboratorio-central:postCDA', { error, data, payload: error.response?.body }, error.message, userScheduler);
}

}
2 changes: 0 additions & 2 deletions cda-laboratorios/controller/import-labs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ export async function importarDatos(paciente) {
}
} catch (e) {
await log.error('cda-laboratorios:import:laboratorios', { error: e, paciente }, e.message, userScheduler);
// No va return porque sigue con el proximo laboratorio dentro del for
// return false;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion cda-laboratorios/controller/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function postCDA(data: any) {

request(options, async (error, response, body) => {
if (error) {
await log.error('cda-laboratorios:import:postCDA', { error, options }, error.message, userScheduler);
await log.error('cda-laboratorios:import:postCDA', { error, data }, error.message, userScheduler);
}
if (response.statusCode >= 200 && response.statusCode < 300) {
return resolve(body);
Expand Down
6 changes: 3 additions & 3 deletions profesional_sisa/service/operaciones.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function postProfesionalSISA(profesional: any) {
}
return (error || body);
} catch (error) {
log.error('profesional_sisa:postProfesionalSISA', { error, options }, error.message, userScheduler);
log.error('profesional_sisa:postProfesionalSISA', { error, data }, error.message, userScheduler);
}

}
Expand All @@ -48,7 +48,7 @@ export async function getProfesional(idProfesional) {
return null;
}
} catch (error) {
log.error('profesional_sisa:getProfesional', { error, url, options }, error.message, userScheduler);
log.error('profesional_sisa:getProfesional', { error, url }, error.message, userScheduler);
}
}

Expand All @@ -69,7 +69,7 @@ export async function getProfesion(codigo) {
return null;
}
} catch (error) {
log.error('profesional_sisa:getProfesion', { error, url, options }, error.message, userScheduler);
log.error('profesional_sisa:getProfesion', { error, url }, error.message, userScheduler);
}
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.