mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
parent
9dfd6f1533
commit
22b90c2319
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue