fix(caldav): avoid selecting every custom properties from table if we have no calendars to filter

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2025-10-09 17:04:23 +02:00
parent 9dfd6f1533
commit 22b90c2319
No known key found for this signature in database

View file

@ -45,6 +45,9 @@ class PropertyMapper extends QBMapper {
* @throws \OCP\DB\Exception
*/
public function findPropertiesByPathsAndUsers(array $calendars): array {
if (empty($calendars)) {
return [];
}
$selectQb = $this->db->getQueryBuilder();
$selectQb->select('*')
->from(self::TABLE_NAME);