mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
made the code a bit simpler
This commit is contained in:
parent
41d7114e97
commit
f8fdecaa2d
1 changed files with 1 additions and 3 deletions
|
|
@ -2901,9 +2901,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/indexes')
|
|||
|
||||
$lengths[$i] ??= null;
|
||||
if ($attributeArray === true) {
|
||||
if ($lengths[$i] === null) {
|
||||
$lengths[$i] = Database::ARRAY_INDEX_LENGTH;
|
||||
}
|
||||
$lengths[$i] ??= Database::ARRAY_INDEX_LENGTH;
|
||||
$orders[$i] = null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue