Rename opt
to opts
on ChatNotificationService#execute
This commit is contained in:
parent
6dc3efdd98
commit
dfef28c920
1 changed files with 4 additions and 4 deletions
|
@ -51,11 +51,11 @@ class ChatNotificationService < Service
|
||||||
|
|
||||||
channel_name = get_channel_field(object_kind).presence || channel
|
channel_name = get_channel_field(object_kind).presence || channel
|
||||||
|
|
||||||
opt = {}
|
opts = {}
|
||||||
opt[:channel] = channel_name if channel_name
|
opts[:channel] = channel_name if channel_name
|
||||||
opt[:username] = username if username
|
opts[:username] = username if username
|
||||||
|
|
||||||
notifier = Slack::Notifier.new(webhook, opt)
|
notifier = Slack::Notifier.new(webhook, opts)
|
||||||
notifier.ping(message.pretext, attachments: message.attachments, fallback: message.fallback)
|
notifier.ping(message.pretext, attachments: message.attachments, fallback: message.fallback)
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in a new issue