@tiledesk/tiledesk-server 2.14.2 → 2.14.3
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 +3 -0
- package/package.json +1 -1
- package/services/requestService.js +3 -1
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.14.3
|
|
9
|
+
- Fixed bug: first message not sent from default chatbot. Refactored availableAgentsCount handling in requestService to ensure accurate snapshot updates during request creation.
|
|
10
|
+
|
|
8
11
|
# 2.14.2
|
|
9
12
|
- Updated updateRequestSnapshotQueued.js to update the snapshot only
|
|
10
13
|
|
package/package.json
CHANGED
|
@@ -608,6 +608,9 @@ class RequestService {
|
|
|
608
608
|
if (dep_id) {
|
|
609
609
|
snapshot.department = result.department;
|
|
610
610
|
}
|
|
611
|
+
|
|
612
|
+
snapshot.availableAgentsCount = this.getAvailableAgentsCount(agents);
|
|
613
|
+
|
|
611
614
|
if (request.requester) {
|
|
612
615
|
snapshot.requester = request.requester;
|
|
613
616
|
}
|
|
@@ -671,7 +674,6 @@ class RequestService {
|
|
|
671
674
|
await q.exec();
|
|
672
675
|
|
|
673
676
|
snapshot.agents = agents;
|
|
674
|
-
snapshot.availableAgentsCount = this.getAvailableAgentsCount(agents);
|
|
675
677
|
requestEvent.emit("request.create.simple", savedRequest, snapshot);
|
|
676
678
|
|
|
677
679
|
if (isStandardConversation) {
|