mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed some tests
This commit is contained in:
1 parent
555d2f7529
commit
e39ed9cf9b
3 files changed
+33
-32
No files matched your search
@@ -908,7 +908,7 @@ App::post('/v1/database/collections/:collectionId/indexes')
|
||||
// set attribute size as length for strings, null otherwise
|
||||
foreach ($attributes as $key => $attribute) {
|
||||
// find attribute metadata in collection document
|
||||
$attributeIndex = \array_search($attribute, array_column($oldAttributes, '$id'));
|
||||
$attributeIndex = \array_search($attribute, array_column($oldAttributes, 'key'));
|
||||
|
||||
if ($attributeIndex === false) {
|
||||
throw new Exception('Unknown attribute: ' . $attribute, 400);
|
||||
|
||||
Reference in new issue
Block a user