Skip to content

Commit

Permalink
[email protected]'s change on OpenFn.org
Browse files Browse the repository at this point in the history
  • Loading branch information
daissatou2 committed Jul 25, 2023
1 parent 821b032 commit f2dac50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jobs/upsertPreChallenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f2dac50

Please sign in to comment.