Use response handler in handleErrors middleare
This commit is contained in:
1 parent
e9eadfe838
commit
9f43336a03
4 files changed
+11
-5
No files matched your search
@@ -34,7 +34,7 @@ class SettingsController {
|
||||
await this.db.updateAppSettings(req.body);
|
||||
const updatedSettings = { ...(await this.settingsService.reloadSettings()) };
|
||||
delete updatedSettings.jwtSecret;
|
||||
return res.successs({
|
||||
return res.success({
|
||||
msg: successMessages.UPDATE_APP_SETTINGS,
|
||||
data: updatedSettings,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user