mirror of
https://github.com/nextcloud/server.git
synced 2026-03-11 10:51:43 -04:00
fix: invalid usage of IQueryBuilder::createNamedParameter()
And fix a typo: chunck -> chunk Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
7bebbc1e1f
commit
ca412c651d
1 changed files with 3 additions and 3 deletions
|
|
@ -3539,9 +3539,9 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
|||
// delete all links that match object uid's
|
||||
$cmd = $this->db->getQueryBuilder();
|
||||
$cmd->delete($this->dbObjectInvitationsTable)
|
||||
->where($cmd->expr()->in('uid', $cmd->createNamedParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
|
||||
foreach (array_chunk($allIds, 1000) as $chunckIds) {
|
||||
$cmd->setParameter('uids', $chunckIds, IQueryBuilder::PARAM_INT_ARRAY);
|
||||
->where($cmd->expr()->in('uid', $cmd->createParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY));
|
||||
foreach (array_chunk($allIds, 1000) as $chunkIds) {
|
||||
$cmd->setParameter('uids', $chunkIds, IQueryBuilder::PARAM_INT_ARRAY);
|
||||
$cmd->executeStatement();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue