Switched to ok
from success
on API responses
This commit is contained in:
@ -2,11 +2,11 @@ export default function apiWrapper(_options) {
|
||||
return async function apiWrapperMiddleware(ctx, next) {
|
||||
await next();
|
||||
|
||||
const success = ctx.status < 400;
|
||||
const ok = ctx.status < 400;
|
||||
|
||||
ctx.body = {
|
||||
...ctx.body,
|
||||
success,
|
||||
ok,
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user