subscribe must return 201

This commit is contained in:
Girish Ramakrishnan
2019-05-05 10:52:39 -07:00
parent b7d046533c
commit dfa5a0f5fe
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ function subscribeCloudron(req, res, next) {
if (error && error.reason === AppstoreError.EXTERNAL_ERROR) return next(new HttpError(424, error.message));
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(200, {}));
next(new HttpSuccess(201, {}));
});
}