Commit b43f9796 authored by Mark Harding's avatar Mark Harding

(fix): incorrect variable in notifications

1 merge request!327Subscription Requests - #604
Pipeline #82752920 passed with stages
in 10 minutes and 52 seconds
......@@ -39,10 +39,10 @@ class NotificationsDelegate
public function onAccept(SubscriptionRequest $subscriptionRequest): void
{
$this->eventsDispatcher->trigger('notification', 'all', [
'to' => [ $subscription->getSubscriberGuid() ],
'entity' => $subscription->getPublisherGuid(),
'to' => [ $subscriptionRequest->getSubscriberGuid() ],
'entity' => $subscriptionRequest->getPublisherGuid(),
'notification_view' => 'subscription_request_accepted',
'from' => $subscription->getPublisherGuid(),
'from' => $subscriptionRequest->getPublisherGuid(),
'params' => [],
]);
}
......@@ -55,10 +55,10 @@ class NotificationsDelegate
public function onDecline(SubscriptionRequest $subscriptionRequest): void
{
$this->eventsDispatcher->trigger('notification', 'all', [
'to' => [ $subscription->getSubscriberGuid() ],
'entity' => $subscription->getPublisherGuid(),
'to' => [ $subscriptionRequest->getSubscriberGuid() ],
'entity' => $subscriptionRequest->getPublisherGuid(),
'notification_view' => 'subscription_request_declined',
'from' => $subscription->getPublisherGuid(),
'from' => $subscriptionRequest->getPublisherGuid(),
'params' => [],
]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment