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
@@ -555,11 +555,9 @@ UserService.addBio = (id, bio) => (
* @param {String} action the new action to the user
* @return {Promise}
*/
UserService.addAction = (item_id, user_id, action_type, field, detail) => Action.insertUserAction({
UserService.addAction = (item_id, user_id, action) => Action.insertUserAction({
item_id,
item_type: 'comment',
user_id,
action_type,
field,
detail
action
});