mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
made the code a bit simpler
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user