use id from hook

This commit is contained in:
ricky committed 2026-08-13 09:58:11 -04:00
1 parent bf41c581d9
commit aa653962e1
1 file changed
+2 -1
+2 -1
View File
@@ -16,6 +16,7 @@ module RedmineSendDm
def send_sms(context = {})
phone = context[:phone]
id: context[:id]
# Dynamically read parameters passed from caller hook
parameters = context[:parameters] || context[:msg] || {}
@@ -28,7 +29,7 @@ module RedmineSendDm
result = sent_dm.messages.send_(
to: ["+1#{clean_phone}"],
template: {
id: "103f89ec-672b-4fc8-a703-9958f181fa77",
id: id,
parameters: parameters
},
channel: ["sms"]