Skip to content

Commit

Permalink
#4 avoid confusing with channel message
Browse files Browse the repository at this point in the history
  • Loading branch information
skoro committed Sep 4, 2024
1 parent 4585c0d commit 56edf49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/EventListener/NotifySubscribersListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function onOrderStatusWasChanged(OrderStatusWasChanged $event): void
subscriberId: $subscriber->getId(),
paymentProcessingId: $event->paymentProcessing->getId(),
transactionId: $event->response->getTransactionId(),
message: $event->response->getMessage(),
responseMessage: $event->response->getMessage(),
);
$this->messageBus->dispatch($message);
}
Expand Down
10 changes: 5 additions & 5 deletions src/Message/NotifySubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
final readonly class NotifySubscriber
{
public function __construct(
public int $orderId,
public int $subscriberId,
public int $paymentProcessingId,
public string $transactionId,
public ?string $message,
public int $orderId,
public int $subscriberId,
public int $paymentProcessingId,
public string $transactionId,
public ?string $responseMessage,
) {
}
}

0 comments on commit 56edf49

Please sign in to comment.