Refactor pagination

This commit is contained in:
Chi Vinh Le
2017-06-01 01:18:41 +07:00
parent 93be1a91be
commit 30d4562383
18 changed files with 453 additions and 365 deletions
+2 -2
View File
@@ -338,9 +338,9 @@ const edit = async (context, {id, asset_id, edit: {body}}) => {
const status = await resolveNewCommentStatus(context, {asset_id, body}, wordlist, settings);
// Execute the edit.
await CommentsService.edit(id, context.user.id, {body, status});
const comment = await CommentsService.edit(id, context.user.id, {body, status});
return {status};
return comment;
};
module.exports = (context) => {