mirror of
https://github.com/rickbarrette/redmine_send_dm.git
synced 2026-10-03 13:40:43 -04:00
use id from hook
This commit is contained in:
1 parent
bf41c581d9
commit
aa653962e1
1 file changed
+2
-1
@@ -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"]
|
||||
|
||||
Reference in new issue
Block a user