Skip to content

Commit bfd8006

Browse files
authored
fix: Unneded inquiry notifier when updating an SLA (#36532)
1 parent a1c99df commit bfd8006

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.changeset/beige-geese-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': patch
3+
---
4+
5+
Fixes an issue with SLA policies that caused an inquiry to "dissapear" after its SLA being updated

apps/meteor/ee/app/livechat-enterprise/server/lib/SlaHelper.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { Message } from '@rocket.chat/core-services';
22
import type { IOmnichannelServiceLevelAgreements, IUser } from '@rocket.chat/core-typings';
33
import { LivechatInquiry, LivechatRooms } from '@rocket.chat/models';
44

5-
import {
6-
notifyOnLivechatInquiryChanged,
7-
notifyOnRoomChangedById,
8-
notifyOnLivechatInquiryChangedByRoom,
9-
} from '../../../../../app/lib/server/lib/notifyListener';
5+
import { notifyOnRoomChangedById, notifyOnLivechatInquiryChangedByRoom } from '../../../../../app/lib/server/lib/notifyListener';
106
import { callbacks } from '../../../../../lib/callbacks';
117

128
export const removeSLAFromRooms = async (slaId: string, userId: string) => {
@@ -36,8 +32,6 @@ export const updateInquiryQueueSla = async (roomId: string, sla: Pick<IOmnichann
3632
slaId,
3733
estimatedWaitingTimeQueue,
3834
});
39-
40-
void notifyOnLivechatInquiryChanged({ ...inquiry, slaId, estimatedWaitingTimeQueue }, 'updated');
4135
};
4236

4337
export const updateRoomSlaWeights = async (roomId: string, sla: Pick<IOmnichannelServiceLevelAgreements, 'dueTimeInMinutes' | '_id'>) => {

0 commit comments

Comments
 (0)