Skip to content

Commit

Permalink
skip non VEVENT objects in fastQuery - #564
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyMosin committed Nov 24, 2024
1 parent ac90104 commit 9d418c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Backend/BCSabreImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,7 @@ private function fastQuery(array $calIds, int $startTs, int $endTs, array $propF
->from('calendarobjects', 'c')
->where($calendarsOrExpr)
->andWhere($query->expr()->neq('c.classification', $query->createNamedParameter(CalDavBackend::CLASSIFICATION_PRIVATE)))
->andWhere($query->expr()->eq('componenttype', $query->createNamedParameter('VEVENT')))
->andWhere($query->expr()->isNull('c.deleted_at'))
->setMaxResults(1024);
foreach ($additionalColumns as $column) {
Expand Down

0 comments on commit 9d418c9

Please sign in to comment.