mirror of
https://github.com/appwrite/appwrite
synced 2026-05-15 21:19:19 +00:00
debug
This commit is contained in:
parent
69bdf50c85
commit
ed7c2fa451
2 changed files with 10 additions and 1 deletions
|
|
@ -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']);
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,8 @@ class StatsResources extends Action
|
|||
* For each project that were accessed in last 24 hours
|
||||
*/
|
||||
$this->foreachDocument($this->dbForPlatform, 'projects', [
|
||||
Query::greaterThanEqual('accessedAt', DateTime::format($last24Hours))
|
||||
Query::greaterThanEqual('accessedAt', DateTime::format($last24Hours)),
|
||||
Query::equal('region', System::getEnv('_APP_REGION', 'default'))
|
||||
], function ($project) use ($queue) {
|
||||
$queue
|
||||
->setProject($project)
|
||||
|
|
|
|||
Loading…
Reference in a new issue