Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix undefined context
  • Loading branch information
Klervix committed Jul 22, 2019
1 parent 445cdbd commit 100d88b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions node-red-contrib-botbuilder/lib/server.js
Expand Up @@ -5,7 +5,7 @@ const restify = require('restify');
const builder = require('botbuilder');

let bot;
let verbose = CONFIG.server.verbose;
let verbose = (CONFIG.server || {}).verbose;

const route = (callback, options, server) => {
let opt = options || {};
Expand Down Expand Up @@ -110,7 +110,7 @@ const createServer = (callback, options, RED) => {
});

// Start listening on port
server.listen(opt.port || CONFIG.server.port, () => {
server.listen(opt.port || (CONFIG.server || {}).port, () => {
if (verbose) info('Server "' + server.name + '" listening to ' + server.url);

// Serve static files
Expand Down
2 changes: 1 addition & 1 deletion node-red-contrib-botbuilder/package.json
@@ -1,6 +1,6 @@
{
"name" : "node-red-contrib-viseo-botbuilder",
"version" : "0.9.0",
"version" : "0.9.1",
"description" : "VISEO Bot Maker - Microsoft BotBuilder and tools",
"dependencies" : {
"botbuilder" : "^3.0.0",
Expand Down

0 comments on commit 100d88b

Please sign in to comment.