mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
debug
This commit is contained in:
parent
434fcdc508
commit
a7199ff980
2 changed files with 4 additions and 9 deletions
|
|
@ -284,15 +284,7 @@ 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']);
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,10 @@ class Maintenance extends Action
|
|||
|
||||
Console::info("[{$time}] Notifying workers with maintenance tasks every {$interval} seconds");
|
||||
|
||||
$dbForPlatform->foreach('projects', function (Document $project) use ($queueForDeletes, $usageStatsRetentionHourly) {
|
||||
$dbForPlatform->foreach('projects', [
|
||||
Query::equal('region', System::getEnv('_APP_REGION', 'default'))
|
||||
],
|
||||
function (Document $project) use ($queueForDeletes, $usageStatsRetentionHourly) {
|
||||
$queueForDeletes
|
||||
->setType(DELETE_TYPE_MAINTENANCE)
|
||||
->setProject($project)
|
||||
|
|
|
|||
Loading…
Reference in a new issue