From f1f8541d64dbb0f45761344d364a63ae14119dca Mon Sep 17 00:00:00 2001 From: Emmanuel Evance Date: Tue, 1 Oct 2024 14:54:55 +0300 Subject: [PATCH] add logs --- workflows/wf2/2-upsert-teis.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/workflows/wf2/2-upsert-teis.js b/workflows/wf2/2-upsert-teis.js index 602dda8..323e479 100644 --- a/workflows/wf2/2-upsert-teis.js +++ b/workflows/wf2/2-upsert-teis.js @@ -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( @@ -168,7 +167,10 @@ each( } ) ); - +fn(state => { + console.log('patientsToUpsert:: ', state.patientsUpsert); + return state; +}); // Upsert TEIs to DHIS2 each( 'patientsToUpsert[*]',