@tiledesk/tiledesk-server 2.8.6 → 2.8.7

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,9 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
+ # 2.8.7
9
+ - Update project update endpoint with agent chats only function
10
+
8
11
  # 2.8.6
9
12
  - Bug fix: token count was incremented in action preview and kb preview even with a private key in integration
10
13
 
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.8.6",
4
+ "version": "2.8.7",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
package/routes/project.js CHANGED
@@ -419,6 +419,10 @@ router.put('/:projectid', [passport.authenticate(['basic', 'jwt'], { session: fa
419
419
  if (req.body["settings.automatic_idle_chats"]!=undefined) {
420
420
  update["settings.automatic_idle_chats"] = req.body["settings.automatic_idle_chats"];
421
421
  }
422
+
423
+ if (req.body["settings.current_agent_my_chats_only"]!=undefined) {
424
+ update["settings.current_agent_my_chats_only"] = req.body["settings.current_agent_my_chats_only"];
425
+ }
422
426
 
423
427
  if (req.body.widget!=undefined) {
424
428
  update.widget = req.body.widget;