diff options
author | Anna Larch <anna@nextcloud.com> | 2023-12-11 11:32:32 +0100 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2023-12-11 11:32:32 +0100 |
commit | 3475d52741232b11b6cbc63667a9e0f826ef7371 (patch) | |
tree | 4ca6f326083ae6de2997ba7af0774ba64d49e04b /apps/dav/lib/CalDAV/CalDavBackend.php | |
parent | 1f10b28c22bc759fdb298a0d956a3b0914605b24 (diff) | |
download | nextcloud-server-3475d52741232b11b6cbc63667a9e0f826ef7371.tar.gz nextcloud-server-3475d52741232b11b6cbc63667a9e0f826ef7371.zip |
fix(caldav): don't reuse query builder objects
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/CalDavBackend.php')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 5a55a9bbbef..034dccba1e0 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -3092,11 +3092,13 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription ->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION))) ->executeStatement(); + $query = $this->db->getQueryBuilder(); $query->delete('calendarchanges') ->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId))) ->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION))) ->executeStatement(); + $query = $this->db->getQueryBuilder(); $query->delete($this->dbObjectPropertiesTable) ->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId))) ->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION))) |