mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
debug
This commit is contained in:
@@ -284,7 +284,15 @@ App::setResource('project', function ($dbForPlatform, $request, $console, $utopi
|
||||
}
|
||||
|
||||
$project = Authorization::skip(fn () => $dbForPlatform->getDocument('projects', $projectId));
|
||||
if(empty($project)) {
|
||||
var_dump([
|
||||
'location' => 'project resource',
|
||||
'getParam(project)' => $request->getParam('project'),
|
||||
'x-appwrite-project' => $request->getHeader('x-appwrite-project', ''),
|
||||
'projectId' => $projectId,
|
||||
]);
|
||||
|
||||
}
|
||||
return $project;
|
||||
}, ['dbForPlatform', 'request', 'console', 'utopia']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user