summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-02-21 11:36:09 +0100
committerJohn Molakvoæ (Rebase PR Action) <skjnldsv@users.noreply.github.com>2022-02-24 07:23:51 +0000
commit1503798725e8b7306e610d838695ab7024bd049d (patch)
tree067622605b7839a0d17755a307c36ff3cbfb9108
parent3d82ff605ba5d3058eacd9b88e42080afc07788d (diff)
downloadnextcloud-server-1503798725e8b7306e610d838695ab7024bd049d.tar.gz
nextcloud-server-1503798725e8b7306e610d838695ab7024bd049d.zip
Fix cleaning reminders after subscription purge
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rw-r--r--apps/dav/lib/AppInfo/Application.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php
index 8d9bd230f94..551ad8ebaa2 100644
--- a/apps/dav/lib/AppInfo/Application.php
+++ b/apps/dav/lib/AppInfo/Application.php
@@ -302,11 +302,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']);
}
);