refactor: rewrite create-app-auth-client mutation as REST endpoint
This commit is contained in:
@@ -41,7 +41,9 @@ const renderObject = (response, object, options) => {
|
||||
},
|
||||
};
|
||||
|
||||
return response.json(computedPayload);
|
||||
const status = options?.status || 200;
|
||||
|
||||
return response.status(status).json(computedPayload);
|
||||
};
|
||||
|
||||
const renderError = (response, errors, status, type) => {
|
||||
|
Reference in New Issue
Block a user