Remove logs

This commit is contained in:
Jake Barnby 2024-12-12 19:06:35 +13:00
parent f4637e1b7d
commit 9a89cc1332
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -2895,11 +2895,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
}
$collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId));
var_dump('database_' . $database->getInternalId());
var_dump($collectionId);
var_dump($collection);
var_dump($isAPIKey);
var_dump($isPrivilegedUser);
if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) {
throw new Exception(Exception::COLLECTION_NOT_FOUND);
}