wingbot 3.67.26 → 3.67.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.67.26",
3
+ "version": "3.67.27",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
@@ -275,7 +275,7 @@ function onInteractionHandler (
275
275
  req,
276
276
  actions,
277
277
  lastAction,
278
- // state,
278
+ state,
279
279
  // data,
280
280
  skill,
281
281
  prevSkill,
@@ -305,14 +305,14 @@ function onInteractionHandler (
305
305
  lang,
306
306
  [pagePathVar]: pagePath,
307
307
  [userAgentVar]: userAgent
308
- } = req.state;
308
+ } = state;
309
309
 
310
310
  const customDimensions = {};
311
311
  for (let i = 1; i <= 8; i++) {
312
312
  const k = `cd${i}`;
313
- if (!['undefined', 'object'].includes(typeof req.state[k])) {
313
+ if (!['undefined', 'object'].includes(typeof state[k])) {
314
314
  Object.assign(customDimensions, {
315
- [k]: req.state[k]
315
+ [k]: state[k]
316
316
  });
317
317
  }
318
318
  }