Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename variables
Signed-off-by: Artur Neumann <[email protected]>
  • Loading branch information
individual-it committed Nov 8, 2022
commit 72f2f207bbe87e7057b2f4210c2eac1b8166b76f
6 changes: 3 additions & 3 deletions lib/Service/OpenProjectAPIService.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ private function checkNotificationsForUser(string $userId): void {
$aggregatedNotifications[$wpId]['actors'][] = $n['_links']['actor']['title'];
}
$manager = $this->notificationManager;
$notification = $manager->createNotification();
$notification->setApp(Application::APP_ID)
$notificationsFilter = $manager->createNotification();
$notificationsFilter->setApp(Application::APP_ID)
->setUser($userId);
$notifications = $this->handler->get($notification);
$notifications = $this->handler->get($notificationsFilter);
$notificationsToDelete = [];
foreach ($notifications as $notificationId => $n) {
$notificationsToDelete[] = $notificationId;
Expand Down