Fix response

This commit is contained in:
Girish Ramakrishnan
2018-12-07 16:39:22 -08:00
parent 515ee891d3
commit 76677e0aea

View File

@@ -181,7 +181,7 @@ function setAdmin(req, res, next) {
if (error && error.reason === CloudronError.BAD_FIELD) return next(new HttpError(404, error.message));
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(200, status));
next(new HttpSuccess(204, {}));
});
}