More linting

This commit is contained in:
Jori Lallo
2016-08-01 10:12:55 +03:00
parent 7c4bc8f273
commit bd188aea49

View File

@ -18,7 +18,7 @@ router.post('documents.info', auth({ require: false }), async (ctx) => {
const document = await Document.findOne({ const document = await Document.findOne({
where: { where: {
id: id, id,
}, },
}); });
@ -44,7 +44,7 @@ router.post('documents.info', auth({ require: false }), async (ctx) => {
}); });
router.post('documents.search', auth(), async (ctx) => { router.post('documents.search', auth(), async (ctx) => {
let { query } = ctx.body; const { query } = ctx.body;
ctx.assertPresent(query, 'query is required'); ctx.assertPresent(query, 'query is required');
const user = await ctx.state.user; const user = await ctx.state.user;
@ -75,7 +75,7 @@ router.post('documents.search', auth(), async (ctx) => {
ctx.body = { ctx.body = {
pagination: ctx.state.pagination, pagination: ctx.state.pagination,
data: data, data,
}; };
}); });