chore!: Remove unused `omnichannelExternalFrameGenerateKey` (#32921)
parent
10bb637bfe
commit
06326341e2
@ -1,12 +0,0 @@ |
||||
import type { ServerMethods } from '@rocket.chat/ddp-client'; |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
import { sdk } from '../../../utils/client/lib/SDKClient'; |
||||
import { generateKey } from './crypto'; |
||||
|
||||
Meteor.methods<ServerMethods>({ |
||||
async omnichannelExternalFrameGenerateKey() { |
||||
const key = await generateKey(); |
||||
await sdk.call('saveSetting', 'Omnichannel_External_Frame_Encryption_JWK', key); |
||||
}, |
||||
}); |
||||
@ -1 +0,0 @@ |
||||
import './generateNewKey'; |
||||
@ -1,18 +0,0 @@ |
||||
import type { ServerMethods } from '@rocket.chat/ddp-client'; |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
declare module '@rocket.chat/ddp-client' { |
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
interface ServerMethods { |
||||
omnichannelExternalFrameGenerateKey(): unknown; |
||||
} |
||||
} |
||||
|
||||
Meteor.methods<ServerMethods>({ |
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
omnichannelExternalFrameGenerateKey() { |
||||
return { |
||||
message: 'Generating_key', |
||||
}; |
||||
}, // only to prevent error when calling the client method
|
||||
}); |
||||
@ -1 +0,0 @@ |
||||
import './generateNewKey'; |
||||
Loading…
Reference in new issue