Skip to content

Commit

Permalink
Update 3-updateSheetsList.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksa-krolls authored May 14, 2024
1 parent 936f216 commit 93c3dcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion form-sharing/3-updateSheetsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ fn(state => {
const workspaceName = name =>
containsGRMFeedback(name) ? 'Grievances' : 'ConSoSci';

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

state.sheetsData = filteredKoboFormsData.map(form => {
const formName = form.name;
return [
Expand All @@ -48,6 +50,7 @@ fn(state => {
instance(formName),
projectId(formName),
grmID(formName),
status,
workspaceName(formName),
form.url,
form.date_modified,
Expand All @@ -65,4 +68,4 @@ appendValues({
spreadsheetId: '1s7K3kxzm5AlpwiALattyc7D9_aIyqWmo2ubcQIUlqlY', //sheet id
range: 'wcs-bns-test!A:L', //range of columns in sheet
values: state => state.sheetsData,
});
});

0 comments on commit 93c3dcd

Please sign in to comment.