1
0
Fork 0
mirror of synced 2024-10-01 01:37:56 +13:00

Fixed broken call

This commit is contained in:
Eldad Fux 2022-11-03 22:24:03 +02:00
parent 541c6772f2
commit f6ae1fedd2

View file

@ -1574,7 +1574,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/indexes')
Query::equal('databaseInternalId', [$db->getInternalId()])
], 61);
$limit = 64 - MariaDB::getCountOfDefaultIndexes();
$limit = $dbForProject->getLimitForIndexes();
if ($count >= $limit) {
throw new Exception(Exception::INDEX_LIMIT_EXCEEDED, 'Index limit exceeded');