remove version from returned settings
This commit is contained in:
1 parent
73ddd54d20
commit
bf0d073aa8
1 file changed
+1
-1
@@ -13,6 +13,7 @@ class SettingsController {
|
|||||||
getAppSettings = async (req, res, next) => {
|
getAppSettings = async (req, res, next) => {
|
||||||
const dbSettings = await this.settingsService.getDBSettings();
|
const dbSettings = await this.settingsService.getDBSettings();
|
||||||
const sanitizedSettings = { ...dbSettings };
|
const sanitizedSettings = { ...dbSettings };
|
||||||
|
delete sanitizedSettings.version;
|
||||||
|
|
||||||
const returnSettings = {
|
const returnSettings = {
|
||||||
pagespeedKeySet: false,
|
pagespeedKeySet: false,
|
||||||
@@ -27,7 +28,6 @@ class SettingsController {
|
|||||||
returnSettings.emailPasswordSet = true;
|
returnSettings.emailPasswordSet = true;
|
||||||
delete sanitizedSettings.systemEmailPassword;
|
delete sanitizedSettings.systemEmailPassword;
|
||||||
}
|
}
|
||||||
|
|
||||||
returnSettings.settings = sanitizedSettings;
|
returnSettings.settings = sanitizedSettings;
|
||||||
return res.success({
|
return res.success({
|
||||||
msg: this.stringService.getAppSettings,
|
msg: this.stringService.getAppSettings,
|
||||||
|
|||||||
Reference in new issue
Block a user