Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed Oct 1, 2024
1 parent 1558d01 commit f1f8541
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions workflows/wf2/2-upsert-teis.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ const buildPatientsUpsert = (state, patient, isNewPatient) => {

const delay = ms => new Promise(resolve => setTimeout(resolve, ms));

// Upsert TEIs to DHIS2
each(
'$.patients[*]',
get(
Expand All @@ -168,7 +167,10 @@ each(
}
)
);

fn(state => {
console.log('patientsToUpsert:: ', state.patientsUpsert);
return state;
});
// Upsert TEIs to DHIS2
each(
'patientsToUpsert[*]',
Expand Down

0 comments on commit f1f8541

Please sign in to comment.