From 64edbd17e512ccc163b7158dde7156bfae75f407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Ma=C5=A1=C3=AD=C4=8Dek?= Date: Thu, 11 Aug 2022 14:18:26 +0200 Subject: [PATCH] Fix publish background queue parameters Cannot unpack array with string keys --- src/Service/QueueService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }