@@ -127,7 +127,7 @@ function setMailConfig(req, res, next) {
|
||||
if (error && error.reason === SettingsError.BAD_FIELD) return next(new HttpError(400, error.message));
|
||||
if (error) return next(new HttpError(500, error));
|
||||
|
||||
next(new HttpSuccess(200));
|
||||
next(new HttpSuccess(202));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ function setMailRelay(req, res, next) {
|
||||
if (error && error.reason === SettingsError.BAD_FIELD) return next(new HttpError(400, error.message));
|
||||
if (error) return next(new HttpError(500, error));
|
||||
|
||||
next(new HttpSuccess(200));
|
||||
next(new HttpSuccess(202));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ function setCatchAllAddress(req, res, next) {
|
||||
if (error && error.reason === SettingsError.BAD_FIELD) return next(new HttpError(400, error.message));
|
||||
if (error) return next(new HttpError(500, error));
|
||||
|
||||
next(new HttpSuccess(200, {}));
|
||||
next(new HttpSuccess(202));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ function setCloudronAvatar(req, res, next) {
|
||||
settings.setCloudronAvatar(avatar, function (error) {
|
||||
if (error) return next(new HttpError(500, error));
|
||||
|
||||
next(new HttpSuccess(202, {}));
|
||||
next(new HttpSuccess(202));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user