From 81ae0dfb3c14256412285b23abf12728df3c9cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Fri, 18 Aug 2023 13:58:46 +0200 Subject: [PATCH] Fix bug where seconds were mistaken for milliseconds --- src/EventSubscriber/DispatchSendPurchaseRequestSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventSubscriber/DispatchSendPurchaseRequestSubscriber.php b/src/EventSubscriber/DispatchSendPurchaseRequestSubscriber.php index bf34e5e..fe070e3 100644 --- a/src/EventSubscriber/DispatchSendPurchaseRequestSubscriber.php +++ b/src/EventSubscriber/DispatchSendPurchaseRequestSubscriber.php @@ -75,7 +75,7 @@ public function dispatch(ResourceControllerEvent $event): void (int) $order->getId(), $clientId ), - [new DelayStamp($this->delay)] + [DelayStamp::delayFor(new \DateInterval(sprintf('PT%dS', $this->delay)))] )); } }