mirror of
https://github.com/nextcloud/server.git
synced 2026-05-22 10:06:37 -04:00
Merge pull request #57424 from nextcloud/backport/55252/stable31
This commit is contained in:
commit
c5d8175140
1 changed files with 7 additions and 2 deletions
|
|
@ -39,8 +39,13 @@ class OrphanHelper {
|
|||
public function deleteShares(array $ids): void {
|
||||
$query = $this->connection->getQueryBuilder();
|
||||
$query->delete('share')
|
||||
->where($query->expr()->in('id', $query->createNamedParameter($ids, IQueryBuilder::PARAM_INT_ARRAY)));
|
||||
$query->executeStatement();
|
||||
->where($query->expr()->in('id', $query->createParameter('ids')));
|
||||
|
||||
$idsChunks = array_chunk($ids, 500);
|
||||
foreach ($idsChunks as $idsChunk) {
|
||||
$query->setParameter('ids', $idsChunk, IQueryBuilder::PARAM_INT_ARRAY)
|
||||
->executeStatement();
|
||||
}
|
||||
}
|
||||
|
||||
public function fileExists(int $fileId): bool {
|
||||
|
|
|
|||
Loading…
Reference in a new issue