@tiledesk/tiledesk-server 2.9.8 → 2.9.10
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/routes/request.js +5 -2
- package/test/requestRoute.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
7
7
|
|
8
|
+
# 2.9.10
|
9
|
+
- Update tybot-connector to 0.2.94
|
10
|
+
|
11
|
+
# 2.9.9
|
12
|
+
- Return draft conversations (for non real time monitor)
|
13
|
+
|
8
14
|
# 2.9.8
|
9
15
|
- Added model contexts fro kb preview
|
10
16
|
- Update tybot-connector to 0.2.93
|
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.9.
|
4
|
+
"version": "2.9.10",
|
5
5
|
"scripts": {
|
6
6
|
"start": "node ./bin/www",
|
7
7
|
"pretest": "mongodb-runner start",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"@tiledesk/tiledesk-rasa-connector": "^1.0.10",
|
49
49
|
"@tiledesk/tiledesk-telegram-connector": "^0.1.14",
|
50
50
|
"@tiledesk/tiledesk-train-jobworker": "^0.0.11",
|
51
|
-
"@tiledesk/tiledesk-tybot-connector": "^0.2.
|
51
|
+
"@tiledesk/tiledesk-tybot-connector": "^0.2.94",
|
52
52
|
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.72",
|
53
53
|
"@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.8",
|
54
54
|
"@tiledesk/tiledesk-sms-connector": "^0.1.7",
|
package/routes/request.js
CHANGED
@@ -902,7 +902,7 @@ router.get('/', function (req, res, next) {
|
|
902
902
|
winston.debug('REQUEST ROUTE - SKIP PAGE ', skip);
|
903
903
|
|
904
904
|
|
905
|
-
var query = { "id_project": req.projectid, "status": { $lt: 1000 }, preflight: false
|
905
|
+
var query = { "id_project": req.projectid, "status": { $lt: 1000 }, preflight: false };
|
906
906
|
|
907
907
|
var projectuser = req.projectuser;
|
908
908
|
|
@@ -1140,9 +1140,12 @@ router.get('/', function (req, res, next) {
|
|
1140
1140
|
|
1141
1141
|
var sortQuery = {};
|
1142
1142
|
sortQuery[sortField] = direction;
|
1143
|
-
|
1144
1143
|
winston.debug("sort query", sortQuery);
|
1145
1144
|
|
1145
|
+
if (req.query.draft && (req.query.draft === 'false' || req.query.draft === false)) {
|
1146
|
+
query.draft = { $in: [false, null] }
|
1147
|
+
}
|
1148
|
+
|
1146
1149
|
winston.debug('REQUEST ROUTE - REQUEST FIND ', query);
|
1147
1150
|
|
1148
1151
|
var projection = undefined;
|
package/test/requestRoute.js
CHANGED
@@ -1195,7 +1195,7 @@ describe('RequestRoute', () => {
|
|
1195
1195
|
// get all requests -> should be 0
|
1196
1196
|
|
1197
1197
|
chai.request(server)
|
1198
|
-
.get('/' + savedProject._id + '/requests')
|
1198
|
+
.get('/' + savedProject._id + '/requests?draft=false')
|
1199
1199
|
.auth(email, pwd)
|
1200
1200
|
.end((err, res) => {
|
1201
1201
|
|