Skip to content

Commit 18905db

Browse files
ryanslattenClinton Werth
andauthored
Ensure enabled/disabled works after arc plugin is initialized (#260)
* store * initial commit * fix event updates * update promises * init fix * Small changes * add comment * store * initial commit * update docker and aws build * fix processor error * fix config issue --------- Co-authored-by: Clinton Werth <[email protected]>
1 parent c0ac672 commit 18905db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/arcgis/service/src/ObservationProcessor.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ export class ObservationProcessor {
165165
private async updateConfig(): Promise<ArcGISPluginConfig> {
166166
const config = await this.safeGetConfig();
167167

168+
if (!config.enabled) {
169+
this._console.info('ArcGIS plugin is disabled, stopping processor');
170+
this.stop();
171+
return config;
172+
}
173+
168174
// Include configured eventform definitions while detecting changes in config
169175
const eventIds = config.featureServices
170176
.flatMap(service => service.layers)

0 commit comments

Comments
 (0)