From c21eb8e3c21f94ed3b041797d5f034e5c711ca9d Mon Sep 17 00:00:00 2001 From: Matt Burchett Date: Thu, 4 Feb 2021 02:33:52 -0600 Subject: [PATCH] Slack endpoint. --- pkg/slack/slack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/slack/slack.go b/pkg/slack/slack.go index 8f70d08..e23478e 100644 --- a/pkg/slack/slack.go +++ b/pkg/slack/slack.go @@ -39,7 +39,7 @@ func parseSlack(body []byte) string { Text string }{} - json.Unmarshal(body, &respbody) + json.Unmarshal(body, &reqBody) - return respBody.Text + return reqBody.Text }