Skip to content

Commit

Permalink
Improve the Notifications Service
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyCyborg committed May 11, 2018
1 parent 2333ee8 commit 13b1c27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Application extends Container implements ResponsePreparerInterface
*
* @var string
*/
const VERSION = '4.0.50';
const VERSION = '4.0.52';

/**
* Indicates if the application has "booted".
Expand Down
12 changes: 3 additions & 9 deletions src/Notifications/ChannelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,10 @@ protected function queueToNotifiable($notifiable, $id, $notification, $channel)
{
$notification->id = $id;

$connection = isset($notification->connection) ? $notification->connection : null;

$queue = isset($notification->queue) ? $notification->queue : null;

$delay = isset($notification->delay) ? $notification->delay : null;

$job = with(new SendQueuedNotifications($notifiable, $notification, array($channel)))
->onConnection($connection)
->onQueue($queue)
->delay($delay);
->onConnection($notification->connection)
->onQueue($notification->queue)
->delay($notification->delay);

$this->bus->dispatch($job);
}
Expand Down

0 comments on commit 13b1c27

Please sign in to comment.