mirror of
https://github.com/wassname/talk.git
synced 2026-08-20 12:50:41 +08:00
Removing extra commas and collapsing actions into an object in the backend.
This commit is contained in:
+2
-4
@@ -284,13 +284,11 @@ CommentSchema.statics.pushStatus = (id, status, assigned_by = null) => Comment.u
|
||||
* @param {String} action the new action to the comment
|
||||
* @return {Promise}
|
||||
*/
|
||||
CommentSchema.statics.addAction = (item_id, user_id, action_type, field, detail) => Action.insertUserAction({
|
||||
CommentSchema.statics.addAction = (item_id, user_id, action) => Action.insertUserAction({
|
||||
item_id,
|
||||
item_type: 'comment',
|
||||
user_id,
|
||||
action_type,
|
||||
field,
|
||||
detail
|
||||
action
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user