Skip to content

Commit

Permalink
update google sheet mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksa-krolls authored May 14, 2024
1 parent 31ab133 commit 3a7199b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions form-sharing/3-updateSheetsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ fn(state => {

const status = 'deployed'; //if we assume only deployed forms will be fetched

const currentDateTime = new Date().toISOString();

const autoSync = true;

state.sheetsData = filteredKoboFormsData.map(form => {
const formName = form.name;
return [
Expand All @@ -50,11 +54,13 @@ fn(state => {
instance(formName),
//projectId(formName), //for GRM only
//grmID(formName), //for GRM only
status,
workspaceName(formName),
status, //deployment status
workspaceName(formName), //openfn project space
form.url,
form.date_modified,
form.date_created,
form.date_modified, //kobo_form_date_modified
form.date_created, //kobo_form_date_created
currentDateTime, //row_date_modified
autoSync, //auto_sync checkbox
];
});

Expand Down

0 comments on commit 3a7199b

Please sign in to comment.