patched bug with adding action

This commit is contained in:
Wyatt Johnson
2017-05-10 12:18:42 -06:00
parent 67c202d89f
commit a3a8d23797
+1 -1
View File
@@ -240,7 +240,7 @@ module.exports = class CommentsService {
* @param {String} action the new action to the comment
* @return {Promise}
*/
static addAction(item_id, user_id, action_type, metadata) {
static addAction(item_id, user_id, action_type, metadata = {}) {
return ActionsService.insertUserAction({
item_id,
item_type: 'COMMENTS',