OpenFn / unicef-cambodia

UNICEF Cambodia - Primero Interoperability
https://openfn.github.io/unicef-cambodia/
1 stars 2 forks source link

Why is lastQueryDate in Oscar set to June date? #36

Closed aleksa-krolls closed 4 years ago

aleksa-krolls commented 4 years ago

All GET requests to OSCaR are currently failing (see run here) with 500 errors. I'm hoping to get on a call with Rotati tonight to discuss, but when reviewing I noticed that the lastQueryDate is being set to 2020-6-8 which seems wrong/ not today's date.

Are we setting lastQueryDate correctly? Or what do I need to understand about the logic/ assumptions? https://github.com/OpenFn/unicef-cambodia/blob/03d8b20ce306fa9670c486031d4c5b33b3983091/jobs/f2-j1-getOscarCases.js#L33-L52