@tiledesk/tiledesk-server 2.3.81 → 2.3.82

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -6,8 +6,10 @@
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
8
 
9
+ # 2.3.82 -> PROD v3
10
+ - Enable current chabot when &td_draft=true query parameter is passed in the url
9
11
 
10
- # 2.3.81 -> PROD v3
12
+ # 2.3.81
11
13
  - Added publish method to the chatbot endpoint and fix for SubscriptionNotifier
12
14
  - Added request_status and preflight body parameters to send (post) message endpoint
13
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.3.81",
4
+ "version": "2.3.82",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -24,7 +24,7 @@ class BotSubscriptionNotifier {
24
24
 
25
25
  var url = bot.url;
26
26
 
27
- if (bot.type == "tilebot" && payload.request && payload.request.attributes && payload.request.attributes.sourcePage && payload.request.attributes.sourcePage.indexOf("&draft=true")>-1) {
27
+ if (bot.type == "tilebot" && payload.request && payload.request.attributes && payload.request.attributes.sourcePage && payload.request.attributes.sourcePage.indexOf("&td_draft=true")>-1) {
28
28
  url = url.substr(0,url.lastIndexOf("/")+1)+bot.id;
29
29
  // url = url + "?forced_bot_id="+bot.id;
30
30
  winston.verbose("BotSubscriptionNotifier it is a tilebot test page. Switch to current chabot id: "+ url);