diff --git a/app/Notifications/Install/UpdateFailed.php b/app/Notifications/Install/UpdateFailed.php index a8ca79ca8..5f5ff2061 100644 --- a/app/Notifications/Install/UpdateFailed.php +++ b/app/Notifications/Install/UpdateFailed.php @@ -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([ diff --git a/config/update.php b/config/update.php index 55604b10b..219536494 100644 --- a/config/update.php +++ b/config/update.php @@ -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 ], ],