diff --git a/src/Service/QueueService.php b/src/Service/QueueService.php index fd7ef90..9317b7f 100644 --- a/src/Service/QueueService.php +++ b/src/Service/QueueService.php @@ -16,8 +16,6 @@ class QueueService { const MUTEX_TIME_FORMAT = DATE_W3C; - const PARAMETER_NAME_MAIL_QUEUE_ENTRY_ID = 'mailQueueEntry_id'; - /** @var string */ protected $queueEntryClass; @@ -126,7 +124,7 @@ public function enqueue(\Nette\Mail\Message $message, $custom = []) { $this->em->persist($entry); $this->em->flush($entry); - $this->backgroundQueueService->publish($this->backgroundQueueCallbackName, [self::PARAMETER_NAME_MAIL_QUEUE_ENTRY_ID => $entry->getId()]); + $this->backgroundQueueService->publish($this->backgroundQueueCallbackName, [$entry->getId()]); return $entry; }