@tiledesk/tiledesk-server 2.3.30 → 2.3.32
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/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
# 2.3.32
|
|
3
|
-
- JSON_BODY_LIMIT increased to 500KB. Added JSON_BODY_LIMIT env variable
|
|
4
2
|
|
|
5
3
|
# 2.3.31
|
|
4
|
+
- logfix
|
|
5
|
+
|
|
6
|
+
# 2.3.30
|
|
6
7
|
- save multiple messages fix with sequential promises
|
|
8
|
+
- JSON_BODY_LIMIT increased to 500KB. Added JSON_BODY_LIMIT env variable
|
|
7
9
|
|
|
8
10
|
# 2.3.29
|
|
9
11
|
- UIDGenerator class replacement for request route
|
package/package.json
CHANGED
|
@@ -305,11 +305,11 @@ class PubModulesManager {
|
|
|
305
305
|
|
|
306
306
|
winston.info("PubModulesManager initialized queue.");
|
|
307
307
|
} catch(err) {
|
|
308
|
-
if (err.code == 'MODULE_NOT_FOUND') {
|
|
309
|
-
|
|
310
|
-
}else {
|
|
308
|
+
// if (err.code == 'MODULE_NOT_FOUND') {
|
|
309
|
+
// winston.info("PubModulesManager init queue module not found");
|
|
310
|
+
// }else {
|
|
311
311
|
winston.info("PubModulesManager error initializing init queue module", err);
|
|
312
|
-
}
|
|
312
|
+
// }
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
|
|
@@ -513,7 +513,7 @@ class RequestService {
|
|
|
513
513
|
try {
|
|
514
514
|
// getOperators(departmentid, projectid, nobot, disableWebHookCall, context) {
|
|
515
515
|
var result = await departmentService.getOperators(departmentid, id_project, false, undefined, context);
|
|
516
|
-
console.log("************* after get operator: "+new Date().toISOString());
|
|
516
|
+
// console.log("************* after get operator: "+new Date().toISOString());
|
|
517
517
|
|
|
518
518
|
winston.debug("getOperators", result);
|
|
519
519
|
} catch(err) {
|
package/test/faqRoute.js
CHANGED
|
@@ -16,6 +16,7 @@ var fs = require('fs');
|
|
|
16
16
|
|
|
17
17
|
var expect = chai.expect;
|
|
18
18
|
var assert = chai.assert;
|
|
19
|
+
var path = require('path');
|
|
19
20
|
|
|
20
21
|
chai.use(chaiHttp);
|
|
21
22
|
|
|
@@ -393,7 +394,7 @@ describe('FaqKBRoute', () => {
|
|
|
393
394
|
.post('/'+ savedProject._id + '/faq/uploadcsv')
|
|
394
395
|
.auth(email, pwd)
|
|
395
396
|
.set('Content-Type', 'text/csv')
|
|
396
|
-
.attach('uploadFile', fs.readFileSync(
|
|
397
|
+
.attach('uploadFile', fs.readFileSync(path.resolve(__dirname,'./example-faqs.csv')))
|
|
397
398
|
.field('id_faq_kb', id_faq_kb)
|
|
398
399
|
.field('delimiter', ';')
|
|
399
400
|
// .send({id_faq_kb: id_faq_kb})
|
|
@@ -447,7 +448,7 @@ describe('FaqKBRoute', () => {
|
|
|
447
448
|
.post('/'+ savedProject._id + '/faq/uploadcsv')
|
|
448
449
|
.auth(email, pwd)
|
|
449
450
|
.set('Content-Type', 'text/csv')
|
|
450
|
-
.attach('uploadFile', fs.readFileSync(
|
|
451
|
+
.attach('uploadFile', fs.readFileSync(path.resolve(__dirname, './example-faqs.csv')))
|
|
451
452
|
.field('id_faq_kb', id_faq_kb)
|
|
452
453
|
.field('delimiter', ';')
|
|
453
454
|
// .send({id_faq_kb: id_faq_kb})
|
package/test/requestRoute.js
CHANGED
|
@@ -47,7 +47,7 @@ describe('RequestRoute', () => {
|
|
|
47
47
|
.post('/'+ savedProject._id + '/requests/')
|
|
48
48
|
.auth(email, pwd)
|
|
49
49
|
.set('content-type', 'application/json')
|
|
50
|
-
.send({"
|
|
50
|
+
.send({"first_text":"first_text"})
|
|
51
51
|
.end(function(err, res) {
|
|
52
52
|
//console.log("res", res);
|
|
53
53
|
console.log("res.body", res.body);
|
|
@@ -102,7 +102,7 @@ it('createUpperCaseEmail', function (done) {
|
|
|
102
102
|
.post('/'+ savedProject._id + '/requests/')
|
|
103
103
|
.auth("test-request-create-" + now + "@email.com", pwd)
|
|
104
104
|
.set('content-type', 'application/json')
|
|
105
|
-
.send({"
|
|
105
|
+
.send({"first_text":"first_text"})
|
|
106
106
|
.end(function(err, res) {
|
|
107
107
|
//console.log("res", res);
|
|
108
108
|
console.log("res.body", res.body);
|
|
@@ -528,7 +528,7 @@ it('getallFilter-snap_department_routing', function (done) {
|
|
|
528
528
|
|
|
529
529
|
|
|
530
530
|
|
|
531
|
-
// mocha test/requestRoute.js --grep '
|
|
531
|
+
// mocha test/requestRoute.js --grep 'getallFilter-snap_department_default'
|
|
532
532
|
|
|
533
533
|
it('getallFilter-snap_department_default', function (done) {
|
|
534
534
|
// this.timeout(10000);
|
|
@@ -819,7 +819,7 @@ it('getallWithLoLead', function (done) {
|
|
|
819
819
|
.post('/'+ savedProject._id + '/requests/')
|
|
820
820
|
.auth(email, pwd)
|
|
821
821
|
.set('content-type', 'application/json')
|
|
822
|
-
.send({"
|
|
822
|
+
.send({"first_text":"first_text"})
|
|
823
823
|
.end(function(err, res) {
|
|
824
824
|
//console.log("res", res);
|
|
825
825
|
console.log("res.body", res.body);
|
|
@@ -898,7 +898,7 @@ it('getallWithLoLead', function (done) {
|
|
|
898
898
|
.post('/'+ savedProject._id + '/requests/')
|
|
899
899
|
.auth(email, pwd)
|
|
900
900
|
.set('content-type', 'application/json')
|
|
901
|
-
.send({"
|
|
901
|
+
.send({"first_text":"first_text"})
|
|
902
902
|
.end(function(err, res) {
|
|
903
903
|
//console.log("res", res);
|
|
904
904
|
console.log("res.body", res.body);
|
|
@@ -976,7 +976,7 @@ it('createAndAssign2', function (done) {
|
|
|
976
976
|
.post('/'+ savedProject._id + '/requests/')
|
|
977
977
|
.auth(email, pwd)
|
|
978
978
|
.set('content-type', 'application/json')
|
|
979
|
-
.send({"
|
|
979
|
+
.send({"first_text":"first_text"})
|
|
980
980
|
.end(function(err, res) {
|
|
981
981
|
//console.log("res", res);
|
|
982
982
|
console.log("res.body", res.body);
|