fix: clean attachment sharing records after permanent deleted
Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user