From feeea9e0ea9ac47ddf3947517cffacf454371603 Mon Sep 17 00:00:00 2001 From: William Newman <3382274+newmanw@users.noreply.github.com> Date: Fri, 1 Nov 2024 10:34:28 -0600 Subject: [PATCH] [service] Fix check to determine if an observation sync to ESRI is a create or update --- plugins/arcgis/service/src/ObservationBinner.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/arcgis/service/src/ObservationBinner.ts b/plugins/arcgis/service/src/ObservationBinner.ts index 2b7794ff2..ca2477552 100644 --- a/plugins/arcgis/service/src/ObservationBinner.ts +++ b/plugins/arcgis/service/src/ObservationBinner.ts @@ -89,9 +89,7 @@ export class ObservationBinner { const bins = new ObservationBins(); for (const arcObservation of observations.observations) { - const arcObject = arcObservation.object - if (observations.firstRun - || arcObservation.lastModified != arcObservation.createdAt) { + if (arcObservation.lastModified != arcObservation.createdAt) { bins.updates.add(arcObservation); } else if (!this._addedObs.has(arcObservation.id)) { bins.adds.add(arcObservation);