Skip to content

Commit

Permalink
[service] Fix check to determine if an observation sync to ESRI is a …
Browse files Browse the repository at this point in the history
…create or update
  • Loading branch information
newmanw committed Nov 1, 2024
1 parent 8592110 commit feeea9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/arcgis/service/src/ObservationBinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit feeea9e

Please sign in to comment.