Skip to content
Permalink
Browse files

Fix undefined context

  • Loading branch information...
Klervix committed Jul 22, 2019
1 parent 5a40493 commit 445cdbd9fb16fbb84854d9a42009c58b213486c9
Showing with 2 additions and 2 deletions.
  1. +1 −1 node-red-contrib-dialogflow/package.json
  2. +1 −1 node-red-contrib-dialogflow/server-dialogflow.js
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-viseo-dialogflow",
"version": "0.2.0",
"version": "0.2.1",
"description" : "VISEO Bot Maker - Dialogflow server and NLP",
"dependencies": {
"node-red-viseo-bot-manager": "~0.1.0",
@@ -65,7 +65,7 @@ const stop = (node, config, done) => {
const LRUMap = require('./lru.js').LRUMap;

// Should it be init in start() ?
let _CONTEXTS = new LRUMap(CONFIG.server.contextLRU || 10000);
let _CONTEXTS = new LRUMap((CONFIG.server || {}).contextLRU || 10000);
let _CONTEXT_KEY = 'contextId';

const getMessageContext = (message) => {

0 comments on commit 445cdbd

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