save settings on load

This commit is contained in:
Alex Holliday
2025-04-28 12:24:34 -07:00
parent 4514032466
commit d5a317caee
+2
View File
@@ -55,6 +55,8 @@ class SettingsService {
this.settings[key] = dbSettings[key];
}
}
await this.appSettings.updateOne({}, { $set: this.settings }, { upsert: true });
return this.settings;
} catch (error) {
error.service === undefined ? (error.service = SERVICE_NAME) : null;