]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix cleaning reminders after subscription purge 31295/head
authorThomas Citharel <tcit@tcit.fr>
Mon, 21 Feb 2022 10:36:09 +0000 (11:36 +0100)
committerThomas Citharel <tcit@tcit.fr>
Mon, 21 Feb 2022 10:36:09 +0000 (11:36 +0100)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
apps/dav/lib/AppInfo/Application.php

index e25b63b598e18251adb7c0697f1ba5bff821a338..99521b61e8b2f5a30f9449b6bdfa1f4056647cb4 100644 (file)
@@ -305,11 +305,11 @@ class Application extends App implements IBootstrap {
                                ]);
 
                                /** @var CalDavBackend $calDavBackend */
-                               $calDavBackend = $container->query(CalDavBackend::class);
+                               $calDavBackend = $container->get(CalDavBackend::class);
                                $calDavBackend->purgeAllCachedEventsForSubscription($subscriptionData['id']);
                                /** @var ReminderBackend $calDavBackend */
-                               $reminderBackend = $container->query(ReminderBackend::class);
-                               $reminderBackend->cleanRemindersForCalendar($subscriptionData['id']);
+                               $reminderBackend = $container->get(ReminderBackend::class);
+                               $reminderBackend->cleanRemindersForCalendar((int) $subscriptionData['id']);
                        }
                );