aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/routes/slack.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/routes/slack.js b/src/server/routes/slack.js
index abd0154..780e7c0 100644
--- a/src/server/routes/slack.js
+++ b/src/server/routes/slack.js
@@ -5,7 +5,7 @@ const getUserIndex = require('../lib/getUserIndex')
router.all('/', function (req, res, next) {
getUserIndex().then(users => {
- const query = req.query.text
+ const query = req.body.text
const user =
users.filter(user => user.value === query)[0]