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
aleksa-krolls committed Aug 24, 2023
1 parent d74d98e commit 61d4959
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jobs/V2/f1-j1-getPrimeroCasesV2.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Either use a manual cursor, or take the cursor from the last run.
fn(state => {
console.log('Last sync end date:', state.lastRunDateTime || 'undefined; using manual cursor...');
const manualCursor = '2023-08-24T09:20:28.203Z'; //referral: '2023-08-13T06:00:00.862Z';
const manualCursor = '2023-08-13T06:00:00.862Z'; //'2023-08-24T09:20:28.203Z';
const currentAttempt = new Date().toISOString();
console.log('Current attempt time:', currentAttempt);

Expand All @@ -20,7 +20,7 @@ getCases(
{
remote: true,
last_updated_at: state => `${state.cursor}..`,
//last_updated_at: '2023-08-24T00:00:00.862Z..', //for troubleshooting
last_updated_at: '2023-08-24T00:00:00.862Z..', //for troubleshooting
//last_updated_at: state => `${state.cursor}..2023-08-14T15:00:00.862Z`, //for troubleshooting
page: 1,
per: 10000,
Expand Down Expand Up @@ -78,8 +78,8 @@ getCases(
getCases(
{
remote: true,
last_updated_at: state => `${state.cursor}..`,
//last_updated_at: state => `${state.cursor}..2023-08-13T06:02:00.862Z`, //for troubleshooting
//last_updated_at: state => `${state.cursor}..`,
last_updated_at: state => `${state.cursor}..2023-08-13T06:02:00.862Z`, //for troubleshooting
page: 1,
per: 10000,
//workflow: 'referral_from_oscar', //REMOVED July '23 bc we should rely on services, not case-level statuses
Expand Down Expand Up @@ -119,8 +119,8 @@ getCases(
getCases(
{
remote: true,
last_updated_at: state => `${state.cursor}..`,
// last_updated_at: state => `${state.cursor}..2023-08-13T06:02:00.862Z`, //for troubleshooting
// last_updated_at: state => `${state.cursor}..`,
last_updated_at: state => `${state.cursor}..2023-08-13T06:02:00.862Z`, //for troubleshooting
page: 1,
per: 10000,
},
Expand Down

0 comments on commit 61d4959

Please sign in to comment.