mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Refactor pagination
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user