Skip to content

Commit 5742c33

Browse files
committed
Remove auth check
1 parent 96608ed commit 5742c33

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Database/Database.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4179,15 +4179,11 @@ public function updateDocuments(
41794179
$new[] = Query::cursorAfter($last);
41804180
}
41814181

4182-
$getResults = fn () => $this->find(
4182+
$batch = $this->silent(fn () => $this->find(
41834183
$collection->getId(),
41844184
array_merge($new, $queries),
41854185
forPermission: Database::PERMISSION_UPDATE
4186-
);
4187-
4188-
$batch = $this->silent(
4189-
fn () => $skipAuth ? $authorization->skip($getResults) : $getResults()
4190-
);
4186+
));
41914187

41924188
if (empty($batch)) {
41934189
break;

0 commit comments

Comments
 (0)