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
ritazagoni committed Nov 14, 2024
1 parent 4a24163 commit debd20f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions jobs/1.getForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ get(
offset: state.meta && state.meta.next ? state.meta.limit + state.meta.offset : 0,
received_on_start: '2024-05-16',
received_on_end: '2024-05-30',
// xmlns: 'http://openrosa.org/formdesigner/6F130211-5A05-4915-8F55-A413A6B9D61B',
xmlns: 'http://openrosa.org/formdesigner/6F130211-5A05-4915-8F55-A413A6B9D61B',
},
},
state => {
const { meta, objects } = state.data;
const { openfnInboxUrl } = state.configuration;
const xmlnsList = [
// `http://openrosa.org/formdesigner/6F130211-5A05-4915-8F55-A413A6B9D61B`, //Outcome Survey form
`http://openrosa.org/formdesigner/6F130211-5A05-4915-8F55-A413A6B9D61B`, //Outcome Survey form
// 'http://openrosa.org/formdesigner/40BBC9E3-C650-4F72-A027-235BF33D87AB', //Create Intervention form
// 'http://openrosa.org/formdesigner/D50A9A33-B1B4-41B2-9ACA-15DBBDFBCF8C', // My Team/Group Name form
//'http://openrosa.org/formdesigner/D771417E-354E-4906-A686-DF0BA230F16A', // Register Participant form
Expand Down Expand Up @@ -47,15 +47,15 @@ get(
const forms = objects;

state.configuration = { baseUrl: 'https://www.openfn.org' };
console.log('Posting form submissions to OpenFn Inbox...');
// console.log('Posting form submissions to OpenFn Inbox...');

return each(forms, state => {
return post(`/inbox/${openfnInboxUrl}`, { body: state.data }, state => ({
...state,
data: {},
references: [],
}))(state);
})(state);
// return each(forms, state => {
// return post(`/inbox/${openfnInboxUrl}`, { body: state.data }, state => ({
// ...state,
// data: {},
// references: [],
// }))(state);
// })(state);
}
);
//ALL form xmlns codes
Expand Down

0 comments on commit debd20f

Please sign in to comment.