1
0
Fork 0

Update lib/Listener/CalendarListener.php

Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Jonathan Treffler 2024-09-17 19:40:56 +02:00 committed by GitHub
parent e2805beb16
commit f0e9043519
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,7 @@ class CalendarListener implements IEventListener {
$collectionName = $event->getCalendarData()['uri']; $collectionName = $event->getCalendarData()['uri'];
$subscriptions = $this->subscriptionService->findAll($collectionName); $subscriptions = $this->subscriptionService->findAll($collectionName);
$notificationPromises = (function () use ($collectionName, $subscriptions): Generator { $notificationPromises = (function () use ($collectionName, $subscriptions): \Generator {
foreach($subscriptions as $subscription) { foreach($subscriptions as $subscription) {
$transport = $this->transportManager->getTransport($subscription->getTransport()); $transport = $this->transportManager->getTransport($subscription->getTransport());
yield $transport->notify($subscription->getUserId(), $collectionName, $subscription->getId()); yield $transport->notify($subscription->getUserId(), $collectionName, $subscription->getId());