fixed slack #1927
This commit is contained in:
parent
7538d2b869
commit
133e63497c
@ -95,7 +95,7 @@ class UpdateFailed extends Notification
|
|||||||
return (new SlackMessage)
|
return (new SlackMessage)
|
||||||
->error()
|
->error()
|
||||||
->from($this->notifications['slack']['from'], $this->notifications['slack']['emoji'])
|
->from($this->notifications['slack']['from'], $this->notifications['slack']['emoji'])
|
||||||
->to($this->notifications['slack']['to'])
|
->to($this->notifications['slack']['channel'])
|
||||||
->content($message)
|
->content($message)
|
||||||
->attachment(function ($attachment) {
|
->attachment(function ($attachment) {
|
||||||
$attachment->fields([
|
$attachment->fields([
|
||||||
|
@ -15,7 +15,8 @@ return [
|
|||||||
'enabled' => env('UPDATE_NOTIFICATIONS_SLACK_ENABLED', false),
|
'enabled' => env('UPDATE_NOTIFICATIONS_SLACK_ENABLED', false),
|
||||||
'emoji' => env('UPDATE_NOTIFICATIONS_SLACK_EMOJI', ':warning:'),
|
'emoji' => env('UPDATE_NOTIFICATIONS_SLACK_EMOJI', ':warning:'),
|
||||||
'from' => env('UPDATE_NOTIFICATIONS_SLACK_FROM', 'Akaunting Update'),
|
'from' => env('UPDATE_NOTIFICATIONS_SLACK_FROM', 'Akaunting Update'),
|
||||||
'to' => env('UPDATE_NOTIFICATIONS_SLACK_TO', '#my-channel'),
|
'to' => env('UPDATE_NOTIFICATIONS_SLACK_TO'), // webhook url
|
||||||
|
'channel' => env('UPDATE_NOTIFICATIONS_SLACK_CHANNEL', null), // set null to use the default channel of webhook
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user