Skip to content

Commit f87e860

Browse files
authored
Merge pull request #557 from utopia-php/fix-skip-auth
Skip auth in bulks
2 parents 6122c76 + 5742c33 commit f87e860

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
@@ -4208,16 +4208,12 @@ public function updateDocuments(
42084208
}
42094209
}
42104210

4211-
$this->withTransaction(function () use ($collection, $updates, $authorization, $skipAuth, $batch) {
4212-
$getResults = fn () => $this->adapter->updateDocuments(
4211+
$this->withTransaction(function () use ($collection, $updates, $batch) {
4212+
$this->adapter->updateDocuments(
42134213
$collection->getId(),
42144214
$updates,
42154215
$batch
42164216
);
4217-
4218-
$skipAuth
4219-
? $authorization->skip($getResults)
4220-
: $getResults();
42214217
});
42224218

42234219
foreach ($batch as $doc) {

0 commit comments

Comments
 (0)