return db settings only to client, sanitize keys
This commit is contained in:
1 parent
91c2f7f0d5
commit
7a855ef47a
2 files changed
+13
-10
No files matched your search
@@ -54,6 +54,11 @@ class SettingsService {
|
||||
}
|
||||
return this.settings;
|
||||
}
|
||||
|
||||
async getDBSettings() {
|
||||
const settings = await this.appSettings.findOne({ singleton: true }).lean();
|
||||
return settings;
|
||||
}
|
||||
}
|
||||
|
||||
export default SettingsService;
|
||||
Reference in new issue
Block a user