1
0
Fork 0
mirror of synced 2024-10-03 10:46:27 +13:00

Make error optional

This commit is contained in:
Jake Barnby 2023-06-15 13:05:37 +12:00
parent 742736a479
commit 10f06226d3
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 4 additions and 6 deletions

View file

@ -280,8 +280,8 @@ $collections = [
'format' => '',
'size' => 2048,
'signed' => true,
'required' => true,
'default' => '',
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
],
@ -478,8 +478,8 @@ $collections = [
'format' => '',
'size' => 2048,
'signed' => true,
'required' => true,
'default' => '',
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
],

View file

@ -118,7 +118,6 @@ function createAttribute(string $databaseId, string $collectionId, Document $att
'collectionId' => $collectionId,
'type' => $type,
'status' => 'processing', // processing, available, failed, deleting, stuck
'error' => '',
'size' => $size,
'required' => $required,
'signed' => $signed,
@ -2437,7 +2436,6 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/indexes')
'collectionInternalId' => $collection->getInternalId(),
'collectionId' => $collectionId,
'type' => $type,
'error' => '',
'attributes' => $attributes,
'lengths' => $lengths,
'orders' => $orders,