Skip to content
Permalink
Browse files

move restify parsers initialization

  • Loading branch information...
webus committed Jan 14, 2018
1 parent 942c53b commit 9729b9e69f67accb0cad76d48e5b0de3f4a76304
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/botstack.js
@@ -30,6 +30,8 @@ class BotStack {
constructor(botName = 'default bot', { useSmoochWebhook = false } = {}) {
this.botName = botName;
this.server = restify.createServer();
this.server.use(restify.queryParser());
this.server.use(restify.bodyParser());
this.restify = restify;

// utils
@@ -448,8 +450,6 @@ class BotStack {
await environments.checkEnvironmentVariables(this);
await environments.processEnvironmentVariables(this);

this.server.use(restify.queryParser());
this.server.use(restify.bodyParser());
this.events = BotStackEmitterInit;
this.state = state;

0 comments on commit 9729b9e

Please sign in to comment.
You can’t perform that action at this time.