return 200 for immediate setters which require no further processing
This commit is contained in:
@@ -41,7 +41,7 @@ async function setCloudronName(req, res, next) {
|
||||
const [error] = await safe(settings.setCloudronName(req.body.name));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(202, {}));
|
||||
next(new HttpSuccess(200, {}));
|
||||
}
|
||||
|
||||
async function getCloudronName(req, res, next) {
|
||||
@@ -72,7 +72,7 @@ async function setAppstoreListingConfig(req, res, next) {
|
||||
const [error] = await safe(settings.setAppstoreListingConfig(listingConfig));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(202, {}));
|
||||
next(new HttpSuccess(200, {}));
|
||||
}
|
||||
|
||||
async function getAppstoreListingConfig(req, res, next) {
|
||||
@@ -92,7 +92,7 @@ async function setCloudronAvatar(req, res, next) {
|
||||
const [error] = await safe(settings.setCloudronAvatar(avatar));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
next(new HttpSuccess(202, {}));
|
||||
next(new HttpSuccess(200, {}));
|
||||
}
|
||||
|
||||
async function getCloudronAvatar(req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user