From a3a8d2379759eda4a52f23f0704ec0609226ea50 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Wed, 10 May 2017 12:18:42 -0600 Subject: [PATCH] patched bug with adding action --- services/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/comments.js b/services/comments.js index d77118705..d51caefcf 100644 --- a/services/comments.js +++ b/services/comments.js @@ -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',