Skip to content

Commit 90cb0bc

Browse files
miaulalalasolracsf
authored andcommitted
fix(caldav): don't reuse query builder objects
Signed-off-by: Anna Larch <anna@nextcloud.com>
1 parent c3293f0 commit 90cb0bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3085,11 +3085,13 @@ public function purgeAllCachedEventsForSubscription($subscriptionId) {
30853085
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
30863086
->executeStatement();
30873087

3088+
$query = $this->db->getQueryBuilder();
30883089
$query->delete('calendarchanges')
30893090
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
30903091
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))
30913092
->executeStatement();
30923093

3094+
$query = $this->db->getQueryBuilder();
30933095
$query->delete($this->dbObjectPropertiesTable)
30943096
->where($query->expr()->eq('calendarid', $query->createNamedParameter($subscriptionId)))
30953097
->andWhere($query->expr()->eq('calendartype', $query->createNamedParameter(self::CALENDAR_TYPE_SUBSCRIPTION)))

0 commit comments

Comments
 (0)