Skip to content

Commit

Permalink
[service] fix event deletion and firstRun logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Saccoccia committed Nov 30, 2024
1 parent fdaa660 commit e98eb82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions plugins/arcgis/service/src/EventDeletionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export class EventDeletionHandler {
this._config = config;
}

public updateConfig(newConfig: ArcGISPluginConfig): void {
this._config = newConfig;
}

/**
*
* @param activeEvents The current set of active events.
Expand Down
4 changes: 1 addition & 3 deletions plugins/arcgis/service/src/ObservationProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,10 @@ export class ObservationProcessor {
if (this._previousConfig == null || this._previousConfig != configJson) {
this._transformer = new ObservationsTransformer(config, console);
this._geometryChangeHandler = new GeometryChangedHandler(this._transformer);
this._eventDeletionHandler = new EventDeletionHandler(this._console, config);
this._eventDeletionHandler.updateConfig(config);
this._layerProcessors = [];
await this.getFeatureServiceLayers(config);
this._previousConfig = configJson
this._firstRun = true;
}
return config
}
Expand All @@ -192,7 +191,6 @@ export class ObservationProcessor {
*/
async start() {
this._isRunning = true;
this._firstRun = true;
this.processAndScheduleNext();
}

Expand Down

0 comments on commit e98eb82

Please sign in to comment.