From 9048c91a3293df3ee9b6592387aa1a486c045574 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Tue, 22 Aug 2023 12:54:14 +0100 Subject: [PATCH] fix: config name for sms provider --- lib/sms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sms.js b/lib/sms.js index 49f8f80c..fd42d1bf 100644 --- a/lib/sms.js +++ b/lib/sms.js @@ -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]