@transcommerce/cwm-shared 1.1.78 → 1.1.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27750,7 +27750,8 @@ class ConfigService {
|
|
|
27750
27750
|
// --- FIX: AUTO-PARSE JSON IF APPLICABLE ---
|
|
27751
27751
|
if (setting.contentType === "application/json" || setting.contentType === "JSON") {
|
|
27752
27752
|
try {
|
|
27753
|
-
|
|
27753
|
+
this.configCache = JSON.parse(setting.value ?? "{}");
|
|
27754
|
+
return this.configCache;
|
|
27754
27755
|
}
|
|
27755
27756
|
catch (err) {
|
|
27756
27757
|
this.logger.error("Failed to parse JSON configuration value", err);
|