mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #33 from utopia-php/fix-collection-exists-code
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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([
|
||||
|
||||
Reference in new issue
Block a user