mirror of
https://github.com/RocketChat/Rocket.Chat.git
synced 2025-12-27 22:40:49 +00:00
chore!: removes livechat:getRoutingConfig deprecated method (#36924)
This commit is contained in:
parent
ec0f8b435d
commit
94079f8686
5
.changeset/selfish-countries-sleep.md
Normal file
5
.changeset/selfish-countries-sleep.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@rocket.chat/meteor": major
|
||||
---
|
||||
|
||||
Removes deprecated Realtime API method: `livechat:getRoutingConfig`
|
||||
@ -15,7 +15,6 @@ import './hooks/afterUserActions';
|
||||
import './hooks/afterAgentRemoved';
|
||||
import './hooks/afterSaveOmnichannelMessage';
|
||||
import './methods/getAnalyticsChartData';
|
||||
import './methods/getRoutingConfig';
|
||||
import './methods/removeAllClosedRooms';
|
||||
import './methods/removeCustomField';
|
||||
import './methods/removeRoom';
|
||||
|
||||
@ -1,20 +0,0 @@
|
||||
import type { OmichannelRoutingConfig } from '@rocket.chat/core-typings';
|
||||
import type { ServerMethods } from '@rocket.chat/ddp-client';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
|
||||
import { methodDeprecationLogger } from '../../../lib/server/lib/deprecationWarningLogger';
|
||||
import { RoutingManager } from '../lib/RoutingManager';
|
||||
|
||||
declare module '@rocket.chat/ddp-client' {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
interface ServerMethods {
|
||||
'livechat:getRoutingConfig'(): OmichannelRoutingConfig | undefined;
|
||||
}
|
||||
}
|
||||
|
||||
Meteor.methods<ServerMethods>({
|
||||
'livechat:getRoutingConfig'() {
|
||||
methodDeprecationLogger.method('livechat:getRoutingConfig', '8.0.0', 'v1/livechat/config/routing');
|
||||
return RoutingManager.getConfig();
|
||||
},
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user