Skip to content

Commit

Permalink
using NGROK_SUBDOMAIN for /slack/add (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexagranov authored and dinoshauer committed May 23, 2018
1 parent 9aa5d6c commit 5789802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handlers/slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
},
handler: (request, reply) => {
console.log(`[WALKIE][${request.method}][${request.url.path}]`);
doOauthRequest('https://walkiebot.ngrok.io/slack/add', request.query.code)
doOauthRequest('https://${process.env.NGROK_SUBDOMAIN}/slack/add', request.query.code)
.then(data => {
if (!data.ok) throw new Error(data.error);

Expand Down

0 comments on commit 5789802

Please sign in to comment.