return 200 for immediate setters which require no further processing

This commit is contained in:
Girish Ramakrishnan
2022-02-16 10:08:57 -08:00
parent 9dbb299bb9
commit 9d2d5d16f3
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -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) {