Skip to content

Commit

Permalink
### 0.10.12 - online
Browse files Browse the repository at this point in the history
- fixed reject(error) => reject(err) in closeRequest()
- added test test/CHATBOT_close_conversation_bot-auto_import.js
  • Loading branch information
Andrea Sponziello committed Nov 6, 2024
1 parent fe9d2d6 commit 017fe85
Show file tree
Hide file tree
Showing 6 changed files with 356 additions and 6 deletions.
7 changes: 6 additions & 1 deletion tiledesk-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

**This library is on npm: https://www.npmjs.com/package/@tiledesk/tiledesk-client**

### 0.10.11 - not online

### 0.10.12 - online
- fixed reject(error) => reject(err) in closeRequest()
- added test test/CHATBOT_close_conversation_bot-auto_import.js

### 0.10.11 - online
- fixed log in authEmailPassword(): this.log => _log
- added getGroup() - untested
- added check on request in changeBot() => if (request && request.participantsBots && request.participantsBots.length > 0)...
Expand Down
6 changes: 3 additions & 3 deletions tiledesk-client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ class TiledeskClient {
if (callback) {
callback(err);
}
reject(error);
reject(err);
}
else {
if (callback) {
Expand Down Expand Up @@ -933,7 +933,7 @@ class TiledeskClient {
HTTPREQUEST,
function(err, resbody) {
if (err) {
reject(error);
reject(err);
if (callback) {
callback(err);
}
Expand Down Expand Up @@ -1514,7 +1514,7 @@ class TiledeskClient {
if (callback) {
callback(err);
}
reject(error);
reject(err);
}
else {
if (callback) {
Expand Down
3 changes: 3 additions & 0 deletions tiledesk-client/mqtt-route.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Route to add on the server to test for health of MQTT messaging
*/
const express = require('express');
const router = express.Router();
const axios = require('axios');
Expand Down
2 changes: 1 addition & 1 deletion tiledesk-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tiledesk/tiledesk-client",
"version": "0.10.11",
"version": "0.10.12",
"description": "Javascript (nodeJS) SDK for Tiledesk REST APIs",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion tiledesk-client/test/CHATBOT_close_conversation_bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const bot = {
{
"_tdActionTitle": "",
"_tdActionId": "a133b1b6-7a60-4925-8b78-38c43c6dc9d1",
"url": "https://api.tiledesk.com/v3/{{project_id}}/requests/{{conversation_id}}",
"url": "http://35.198.150.252/api/{{project_id}}/requests/{{conversation_id}}",
"headersString": {
"Content-Type": "*/*",
"Cache-Control": "no-cache",
Expand Down
Loading

0 comments on commit 017fe85

Please sign in to comment.