Merge pull request #33 from utopia-php/fix-collection-exists-code

This commit is contained in:
Jake Barnby authored and GitHub committed 2026-03-13 20:29:24 +13:00
commit 83dbcde768
1 file changed
+1 -1
+1 -1
View File
@@ -532,7 +532,7 @@ class Client
$list = $this->listCollectionNames(["name" => $name], $options);
if (\count($list->cursor->firstBatch) > 0) {
throw new Exception('Collection Exists');
throw new Exception('Collection Exists', 48);
}
$res = $this->query(array_merge([