From 0dcb0bcaab0374b8a5071a7547bd8e0e125fdef0 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Tue, 13 Mar 2018 16:01:38 -0600 Subject: [PATCH] Slack plugin fix --- plugins/talk-plugin-slack-notifications/server/hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/talk-plugin-slack-notifications/server/hooks.js b/plugins/talk-plugin-slack-notifications/server/hooks.js index eac0c1be4..4133f795d 100644 --- a/plugins/talk-plugin-slack-notifications/server/hooks.js +++ b/plugins/talk-plugin-slack-notifications/server/hooks.js @@ -10,7 +10,7 @@ if (process.env.NODE_ENV === 'test') { module.exports = { RootMutation: { createComment: { - async post(_, _, context, info, result) { + async post(root, args, context, info, result) { debug(`Posting notification to Slack webhook: ${SLACK_WEBHOOK_URL}`); const { comment: { body: text, created_at: createdAt } } = result; const username = context.user.username;