Livechat CRM secret token optional (#14022)
parent
58981450f9
commit
788f4e9e39
@ -0,0 +1,17 @@ |
||||
import { Migrations } from '../../../app/migrations'; |
||||
import { Settings } from '../../../app/models'; |
||||
|
||||
Migrations.add({ |
||||
version: 145, |
||||
up() { |
||||
const setting = Settings.findOne({ _id: 'Livechat_secret_token' }); |
||||
|
||||
if (setting && setting.value === false) { |
||||
Settings.update({ _id: 'Livechat_secret_token' }, { |
||||
$set: { |
||||
value: '', |
||||
}, |
||||
}); |
||||
} |
||||
}, |
||||
}); |
||||
Loading…
Reference in new issue