Skip to content

Commit

Permalink
[service] updateConfig inner async methods await before we query
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Saccoccia committed Nov 8, 2024
1 parent a38cf9b commit df19f92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/arcgis/service/src/FeatureServiceAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class FeatureServiceAdmin {
}

if (addFields.length > 0) {
this.addFields(service, featureLayer, addFields)
await this.addFields(service, featureLayer, addFields)
}

const eventFieldSet = new Set()
Expand All @@ -115,7 +115,7 @@ export class FeatureServiceAdmin {

if (deleteFields.length > 0) {
layerInfo.fields = remainingFields
this.deleteFields(service, featureLayer, deleteFields)
await this.deleteFields(service, featureLayer, deleteFields)
}
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/arcgis/service/src/ObservationProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class ObservationProcessor {
this._geometryChangeHandler = new GeometryChangedHandler(this._transformer);
this._eventDeletionHandler = new EventDeletionHandler(this._console, config);
this._layerProcessors = [];
this.getFeatureServiceLayers(config);
await this.getFeatureServiceLayers(config);
this._previousConfig = configJson
this._firstRun = true;
}
Expand Down

0 comments on commit df19f92

Please sign in to comment.