[FIX] Omnichannel call provider option (#27466)
parent
61689c8c49
commit
b2ed028140
@ -0,0 +1,20 @@ |
||||
import { Settings } from '@rocket.chat/models'; |
||||
|
||||
import { addMigration } from '../../lib/migrations'; |
||||
import { settings } from '../../../app/settings/server'; |
||||
|
||||
addMigration({ |
||||
version: 282, |
||||
up() { |
||||
const omnichannelCallProvider = settings.get('Omnichannel_call_provider'); |
||||
if (omnichannelCallProvider !== 'none') { |
||||
Settings.updateOne( |
||||
{ _id: 'Omnichannel_call_provider' }, |
||||
{ |
||||
$set: { value: 'default-provider' }, |
||||
}, |
||||
{ upsert: true }, |
||||
); |
||||
} |
||||
}, |
||||
}); |
||||
Loading…
Reference in new issue