OpenFn / unicef-cambodia

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

F1-J2 Oscar logs not showing any data values #41

Closed aleksa-krolls closed 4 years ago

aleksa-krolls commented 4 years ago

The logs below are currently outputting blank { } (see example L35 where I'd expect to see a full object). https://github.com/OpenFn/unicef-cambodia/blob/3f6629f4eb289b702a95b507c68a1b03d9fcd829/jobs/f1-j2-casesToOscar.js#L209-L229

See below where no Oscar data showing in the logs. Can you please help me fix this and do a round of testing across the board?

Data provided by Primero: {
  "_id": "a45e9a8a724a5659495e37aa877d9733",
  "case_id": "2a6d7057-7734-46d1-b4ee-f83f6146d4e4",
  "case_id_display": "146d4e4",
  "created_at": "2020/07/14 18:44:29 +0000",
  "location_current": "12110304",
  "module_id": "primeromodule-cp",
  "owned_by": "primero_cp",
  "owned_by_agency": "agency-unicef",
  "owned_by_phone": "",
  "services_section": [
    {
      "oscar_referring_organization": "agency-ajl",
      "service_implementing_agency": "agency-cct",
      "service_implementing_agency_individual": "agency-cct-user",
      "service_status_referred": true,
      "unique_id": "b805cae5-3b97-4d3d-9c91-ad7f5a2cfefc"
    }
  ],
  "transitions": [
    {
      "unique_id": "b805cae5-3b97-4d3d-9c91-ad7f5a2cfefc"
    }
  ]
}
Case data to be posted to Oscar:  {}
taylordowns2000 commented 4 years ago

Closed by the latest commit. Seems the 7am runs all worked as expected