From f2dac503f02b150d41ffbd5d1e8881ec32079aad Mon Sep 17 00:00:00 2001 From: daissatou2 <80456839+daissatou2@users.noreply.github.com> Date: Tue, 25 Jul 2023 08:14:15 -0500 Subject: [PATCH] aissatou@openfn.org's change on OpenFn.org --- jobs/upsertPreChallenges.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jobs/upsertPreChallenges.js b/jobs/upsertPreChallenges.js index 18a12d4..30e537e 100644 --- a/jobs/upsertPreChallenges.js +++ b/jobs/upsertPreChallenges.js @@ -39,6 +39,11 @@ fn(state => { const { form } = state.data; const formVersion = Object.keys(form).find(key => key.includes('pre_challenge')); + + if (formVersion == "pre_challenge_ecap_-_pre_-_season_survey_for_athletes") { + console.log("Skipping upsert for ECAP data") + return state; +} console.log("form version", formVersion);