mirror of
https://github.com/rickbarrette/redmine_send_dm.git
synced 2026-10-03 21: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 = {})
|
def send_sms(context = {})
|
||||||
phone = context[:phone]
|
phone = context[:phone]
|
||||||
|
id: context[:id]
|
||||||
# Dynamically read parameters passed from caller hook
|
# Dynamically read parameters passed from caller hook
|
||||||
parameters = context[:parameters] || context[:msg] || {}
|
parameters = context[:parameters] || context[:msg] || {}
|
||||||
|
|
||||||
@@ -28,7 +29,7 @@ module RedmineSendDm
|
|||||||
result = sent_dm.messages.send_(
|
result = sent_dm.messages.send_(
|
||||||
to: ["+1#{clean_phone}"],
|
to: ["+1#{clean_phone}"],
|
||||||
template: {
|
template: {
|
||||||
id: "103f89ec-672b-4fc8-a703-9958f181fa77",
|
id: id,
|
||||||
parameters: parameters
|
parameters: parameters
|
||||||
},
|
},
|
||||||
channel: ["sms"]
|
channel: ["sms"]
|
||||||
|
|||||||
Reference in new issue
Block a user