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
+5 -2
+5 -2
View File
@@ -48,9 +48,12 @@ class SettingsService {
// If there are any settings that weren't set by environment variables, use user settings from DB
for (const key in envConfig) {
if (typeof dbSettings?.[key] !== "undefined") {
if (
typeof envConfig?.[key] === "undefined" &&
typeof dbSettings?.[key] !== "undefined"
) {
this.settings[key] = dbSettings[key];
}
}
}
await this.appSettings.updateOne({}, { $set: this.settings }, { upsert: true });