Switched to ok from success on API responses

This commit is contained in:
Jori Lallo
2016-09-11 15:48:03 -07:00
parent b03d6aa116
commit 60e9a700de
4 changed files with 9 additions and 10 deletions

View File

@ -1,5 +1,4 @@
import bodyParser from 'koa-bodyparser';
import httpErrors from 'http-errors';
import Koa from 'koa';
import Router from 'koa-router';
import Sequelize from 'sequelize';
@ -41,7 +40,7 @@ api.use(async (ctx, next) => {
}
ctx.body = {
success: false,
ok: false,
error: message,
};
}