mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Removing extra commas and collapsing actions into an object in the backend.
This commit is contained in:
+2
-4
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user