Skip to content

Commit

Permalink
#1305 | Assume ETL Sync job hasn't been triggered if ETL Status job f…
Browse files Browse the repository at this point in the history
…ails to list the status corresponding to a UUID
  • Loading branch information
himeshr committed Aug 8, 2024
1 parent 8ed57c7 commit fa44b9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class OrganisationAndOrgGroupDataProvider {
const entityUUIDs = raListResponse.data.map(x => x.uuid);
return EtlJobService.getJobStatuses(entityUUIDs).then(jobStatuses => {
const map = CollectionUtil.toObject(jobStatuses.data, "entityUUID", "analyticsEnabled");
raListResponse.data.forEach(x => (x["analyticsDataSyncActive"] = map[x["uuid"]]));
raListResponse.data.forEach(x => (x["analyticsDataSyncActive"] = map[x["uuid"]] || false));
return raListResponse;
});
});
Expand Down

0 comments on commit fa44b9c

Please sign in to comment.