revert loadsettings changes

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-05-06 14:57:07 -04:00
1 parent 336ffcc9e9
commit 9dc6c3c7b1
1 file changed
+4 -1
+4 -1
View File
@@ -48,7 +48,10 @@ class SettingsService {
// If there are any settings that weren't set by environment variables, use user settings from DB // If there are any settings that weren't set by environment variables, use user settings from DB
for (const key in envConfig) { for (const key in envConfig) {
if (typeof dbSettings?.[key] !== "undefined") { if (
typeof envConfig?.[key] === "undefined" &&
typeof dbSettings?.[key] !== "undefined"
) {
this.settings[key] = dbSettings[key]; this.settings[key] = dbSettings[key];
} }
} }