return db settings only to client, sanitize keys

This commit is contained in:
Alex Holliday committed 2025-05-08 13:24:24 -07:00
1 parent 91c2f7f0d5
commit 7a855ef47a
2 files changed
+13 -10

No files matched your search

+5
View File
@@ -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;