diff --git a/src/Service/QueueService.php b/src/Service/QueueService.php index fd7ef90..e26b045 100644 --- a/src/Service/QueueService.php +++ b/src/Service/QueueService.php @@ -126,7 +126,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; }