Resolving 500 error when deleting an action.

This commit is contained in:
David Jay
2016-11-15 14:24:38 -05:00
parent 44292a81ad
commit fbf27a9d75
3 changed files with 8 additions and 7 deletions
+4 -4
View File
@@ -194,12 +194,12 @@ CommentSchema.statics.removeById = function(id) {
* @param {String} action_type the type of the action to be removed
* @param {String} user_id the id of the user performing the action
*/
CommentSchema.statics.removeAction = function(id, user_id, action_type) {
CommentSchema.statics.removeAction = function(item_id, user_id, action_type) {
return Action.remove({
action_type: action_type,
action_type,
item_type: 'comment',
item_id: id,
user_id: user_id
item_id,
user_id
});
};