mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
debug
This commit is contained in:
parent
635dbdb5cb
commit
b04a85491b
1 changed files with 5 additions and 3 deletions
|
|
@ -207,8 +207,6 @@ function createAttribute(string $databaseId, string $collectionId, Document $att
|
||||||
$dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId());
|
$dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId());
|
||||||
}
|
}
|
||||||
|
|
||||||
var_dump('**pushing to queue**');
|
|
||||||
|
|
||||||
$queueForDatabase
|
$queueForDatabase
|
||||||
->setType(DATABASE_TYPE_CREATE_ATTRIBUTE)
|
->setType(DATABASE_TYPE_CREATE_ATTRIBUTE)
|
||||||
->setDatabase($db)
|
->setDatabase($db)
|
||||||
|
|
@ -2897,7 +2895,11 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
|
||||||
}
|
}
|
||||||
|
|
||||||
$collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId));
|
$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)) {
|
if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) {
|
||||||
throw new Exception(Exception::COLLECTION_NOT_FOUND);
|
throw new Exception(Exception::COLLECTION_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue