This commit is contained in:
Denis Duliçi 2021-03-12 21:45:19 +03:00
parent 7538d2b869
commit 133e63497c
2 changed files with 3 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class UpdateFailed extends Notification
return (new SlackMessage)
->error()
->from($this->notifications['slack']['from'], $this->notifications['slack']['emoji'])
->to($this->notifications['slack']['to'])
->to($this->notifications['slack']['channel'])
->content($message)
->attachment(function ($attachment) {
$attachment->fields([

View File

@ -15,7 +15,8 @@ return [
'enabled' => env('UPDATE_NOTIFICATIONS_SLACK_ENABLED', false),
'emoji' => env('UPDATE_NOTIFICATIONS_SLACK_EMOJI', ':warning:'),
'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
],
],