update loadSettings logic to prioritize db env values for testing

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-05-05 16:02:59 -04:00
1 parent 2f8981e379
commit cc454ab519
1 file changed
+1 -4
+1 -4
View File
@@ -48,10 +48,7 @@ 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 ( if (typeof dbSettings?.[key] !== "undefined") {
typeof envConfig?.[key] === "undefined" &&
typeof dbSettings?.[key] !== "undefined"
) {
this.settings[key] = dbSettings[key]; this.settings[key] = dbSettings[key];
} }
} }