Update lib/Listener/CalendarListener.php
Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
e2805beb16
commit
f0e9043519
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class CalendarListener implements IEventListener {
|
|||
$collectionName = $event->getCalendarData()['uri'];
|
||||
$subscriptions = $this->subscriptionService->findAll($collectionName);
|
||||
|
||||
$notificationPromises = (function () use ($collectionName, $subscriptions): Generator {
|
||||
$notificationPromises = (function () use ($collectionName, $subscriptions): \Generator {
|
||||
foreach($subscriptions as $subscription) {
|
||||
$transport = $this->transportManager->getTransport($subscription->getTransport());
|
||||
yield $transport->notify($subscription->getUserId(), $collectionName, $subscription->getId());
|
||||
|
|
Loading…
Reference in a new issue