Skip to content

Commit

Permalink
Fix for #1309: import of XMLParser fell behind in the V2 API after th…
Browse files Browse the repository at this point in the history
…e split. Corrected now.
  • Loading branch information
jacobwod committed Aug 7, 2023
1 parent d4f209d commit ad6f888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion new-backend/server/apis/v2/services/config.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ad from "./activedirectory.service.js";
import asyncFilter from "../utils/asyncFilter.js";
import log4js from "log4js";
import getAnalyticsOptionsFromDotEnv from "../utils/getAnalyticsOptionsFromDotEnv.js";
import { XMLParser } from "fast-xml-parser";

const logger = log4js.getLogger("service.config.v2");

Expand All @@ -19,6 +20,8 @@ class ConfigServiceV2 {
// have a global bus (using EventEmitter?), so we can trigger
// re-reads from FS into our in-memory store.
logger.trace("Initiating ConfigService V2");
// Prepare the XML parser
this.xmlParser = new XMLParser();
}

/**
Expand Down Expand Up @@ -52,7 +55,7 @@ class ConfigServiceV2 {

if (washContent === false) {
logger.trace(
"[getMapConfig] invoked with 'washContent=false' for user %s. Returning the entire%s map config.",
"[getMapConfig] invoked with 'washContent=false' for user %s. Returning the entire %s map config.",
user,
map
);
Expand Down Expand Up @@ -483,6 +486,7 @@ class ConfigServiceV2 {
`WFST edit layer "${layer.id}"`
)
);

mapConfig.tools[editIndexInTools].options.activeServices = activeServices;
}

Expand Down

0 comments on commit ad6f888

Please sign in to comment.