Skip to content

Commit f6240f5

Browse files
juliajforestiggazzo
authored andcommitted
chore!: remove deprecated livechat:removeUnit method (#37460)
1 parent 7510635 commit f6240f5

File tree

4 files changed

+6
-32
lines changed

4 files changed

+6
-32
lines changed

.changeset/blue-beans-check.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': major
3+
---
4+
5+
Removes deprecated `livechat:removeUnit` method

apps/meteor/ee/app/livechat-enterprise/server/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { Meteor } from 'meteor/meteor';
55
import './methods/addMonitor';
66
import './methods/removeMonitor';
77
import './methods/saveTag';
8-
import './methods/removeUnit';
98
import './methods/removeBusinessHour';
109
import './hooks/afterTakeInquiry';
1110
import './hooks/beforeNewInquiry';

apps/meteor/ee/app/livechat-enterprise/server/methods/removeUnit.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

apps/meteor/tests/e2e/utils/omnichannel/units.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ type CreateUnitParams = {
1010
departments?: { departmentId: string }[];
1111
};
1212

13-
const removeUnit = async (api: BaseTest['api'], id: string) =>
14-
api.post('/method.call/omnichannel:removeUnit', {
15-
message: JSON.stringify({ msg: 'method', id: '35', method: 'livechat:removeUnit', params: [id] }),
16-
});
13+
const removeUnit = async (api: BaseTest['api'], id: string) => api.delete(`/livechat/units/${id}`);
1714

1815
export const createOrUpdateUnit = async (
1916
api: BaseTest['api'],

0 commit comments

Comments
 (0)