Removing extra commas and collapsing actions into an object in the backend.

This commit is contained in:
David Jay
2016-12-08 15:27:49 -05:00
parent b3d84d724f
commit 9d28577e9b
7 changed files with 13 additions and 37 deletions
+2 -4
View File
@@ -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
});
/**