@tiledesk/tiledesk-server 2.4.17 β 2.4.19
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,10 +1,33 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
π₯ TILEDESK SERVER v2.
|
3
|
+
π₯ TILEDESK SERVER v2.3.77 π₯
|
4
4
|
π TAGGED AND PUBLISHED ON NPM π
|
5
5
|
π IN PRODUCTION π
|
6
|
-
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.
|
6
|
+
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
7
7
|
|
8
|
+
# 2.4.18
|
9
|
+
- logfix
|
10
|
+
|
11
|
+
# 2.4.17
|
12
|
+
- logfix
|
13
|
+
- post and .patch for /properties are equals
|
14
|
+
- bugfix added invalidatRequestSimple for waiting time issue
|
15
|
+
- added QUEUE_EXCHANGE_TOPIC env parameter
|
16
|
+
- email template changes
|
17
|
+
|
18
|
+
|
19
|
+
# 2.4.16
|
20
|
+
- env for durable and persistent queue
|
21
|
+
|
22
|
+
# 2.4.15
|
23
|
+
- persistent false
|
24
|
+
|
25
|
+
|
26
|
+
# 2.4.14 -> PROD
|
27
|
+
- added request_channel attribute to chat21 messages
|
28
|
+
- moved propertiies to agent role
|
29
|
+
- logfix
|
30
|
+
- "@tiledesk/tiledesk-tybot-connector": "^0.1.80"
|
8
31
|
|
9
32
|
# 2.4.13
|
10
33
|
- "@tiledesk/tiledesk-tybot-connector": "^0.1.79"
|
@@ -91,6 +91,8 @@ router.post('/', function (req, res) {
|
|
91
91
|
return res.status(500).send({success: false, msg: 'Error getting the request.', err:err});
|
92
92
|
}
|
93
93
|
|
94
|
+
winston.debug('request cache simple 1', request);
|
95
|
+
|
94
96
|
if (!request) { //the request doen't exists create it
|
95
97
|
|
96
98
|
winston.debug("request not exists with request_id: " + message.recipient);
|
@@ -305,11 +307,11 @@ router.post('/', function (req, res) {
|
|
305
307
|
|
306
308
|
// return requestService.incrementMessagesCountByRequestId(request.request_id, request.id_project).then(function(savedRequest) {
|
307
309
|
// winston.debug("savedRequest.participants.indexOf(message.sender)", savedRequest.participants.indexOf(message.sender));
|
308
|
-
winston.
|
309
|
-
winston.
|
310
|
+
winston.debug("before updateWaitingTimeByRequestId*******",request.participants, message.sender);
|
311
|
+
winston.debug("updateWaitingTimeByRequestId******* message: "+ message.sender);
|
310
312
|
// TODO it doesn't work for internal requests bacause participanets == message.senderβ
|
311
313
|
if (request.participants && request.participants.indexOf(message.sender) > -1) { //update waiitng time if write an agent (member of participants)
|
312
|
-
winston.
|
314
|
+
winston.debug("updateWaitingTimeByRequestId*******");
|
313
315
|
return requestService.updateWaitingTimeByRequestId(request.request_id, request.id_project, false).then(function(upRequest) {
|
314
316
|
return res.json(upRequest);
|
315
317
|
});
|
package/package.json
CHANGED
@@ -27,7 +27,8 @@ if (process.env.ENABLE_PERSISTENT_QUEUE == true || process.env.ENABLE_PERSISTENT
|
|
27
27
|
|
28
28
|
var exchange = process.env.QUEUE_EXCHANGE_TOPIC || 'amq.topic';
|
29
29
|
|
30
|
-
|
30
|
+
var queueName = process.env.QUEUE_NAME || 'jobs';
|
31
|
+
winston.info("Durable queue: " + durable + " Persistent queue: " + persistent + " Exchange topic: " + exchange+ " Queue name: " + queueName);
|
31
32
|
|
32
33
|
|
33
34
|
function start() {
|
@@ -129,7 +130,7 @@ function startWorker() {
|
|
129
130
|
// durable: true
|
130
131
|
});
|
131
132
|
|
132
|
-
ch.assertQueue(
|
133
|
+
ch.assertQueue(queueName, { durable: durable }, function(err, _ok) {
|
133
134
|
// ch.assertQueue("jobs", { durable: true }, function(err, _ok) {
|
134
135
|
if (closeOnErr(err)) return;
|
135
136
|
ch.bindQueue(_ok.queue, exchange, "request_create", {}, function(err3, oka) {
|
@@ -175,7 +176,7 @@ function startWorker() {
|
|
175
176
|
});
|
176
177
|
|
177
178
|
|
178
|
-
ch.consume(
|
179
|
+
ch.consume(queueName, processMsg, { noAck: false });
|
179
180
|
winston.info("Worker is started");
|
180
181
|
});
|
181
182
|
|