save settings on load
This commit is contained in:
1 parent
4514032466
commit
d5a317caee
1 file changed
+2
@@ -55,6 +55,8 @@ class SettingsService {
|
|||||||
this.settings[key] = dbSettings[key];
|
this.settings[key] = dbSettings[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await this.appSettings.updateOne({}, { $set: this.settings }, { upsert: true });
|
||||||
return this.settings;
|
return this.settings;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
error.service === undefined ? (error.service = SERVICE_NAME) : null;
|
error.service === undefined ? (error.service = SERVICE_NAME) : null;
|
||||||
|
|||||||
Reference in new issue
Block a user