Slack plugin fix

This commit is contained in:
Wyatt Johnson
2018-03-13 16:01:38 -06:00
parent 2f5fc03e9c
commit 0dcb0bcaab
@@ -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;