fix: config name for sms provider

This commit is contained in:
Rafael Taranto 2023-08-22 12:54:14 +01:00
parent 99b47cc3c0
commit 9048c91a32

View file

@ -25,7 +25,7 @@ function getSms (event, phone, content) {
}
function getPlugin (settings) {
const smsProvider = settings.config.notifications_thirdParty_provider
const smsProvider = settings.config.notifications_thirdParty_sms
const pluginCode = smsProvider ?? 'twilio'
const plugin = ph.load(ph.SMS, pluginCode)
const account = settings.accounts[pluginCode]