aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-09-27 12:15:39 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-09-27 12:15:39 +0200
commit19f6b19ce8d7f434b669887b86bcf78b2241f22f (patch)
treeda741319143eb6f53a9aff89ffe13927bdeb724c /src
parent512c9689b5124656f37086619087a277262c3e03 (diff)
Look for the query in the body
Diffstat (limited to 'src')
-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]