fix: clean attachment sharing records after permanent deleted

Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
Luka Trovic
2025-08-22 11:09:53 +02:00
parent 382c05ed8d
commit b80e0d9297
4 changed files with 61 additions and 2 deletions

View File

@@ -645,4 +645,16 @@ class CardMapper extends QBMapper implements IPermissionMapper {
$result->closeCursor();
}
public function getAllCardIds(): array {
$qb = $this->db->getQueryBuilder();
$qb->select('id')
->from('deck_cards');
$result = $qb->executeQuery();
$ids = [];
while ($row = $result->fetch()) {
$ids[] = (int)$row['id'];
}
return $ids;
}
}