payload debug

This commit is contained in:
shimon 2025-01-24 16:46:02 +02:00
parent 270dfd685d
commit 39585d0438

View file

@ -1360,7 +1360,7 @@ App::setResource('project', function ($dbForPlatform, $request, $console) {
$project = Authorization::skip(fn () => $dbForPlatform->getDocument('projects', $projectId));
if ($project->getAttribute('region') !== System::getEnv('_APP_REGION', 'default')) {
if (!empty($project->getAttribute('region')) && $project->getAttribute('region') !== System::getEnv('_APP_REGION', 'default')) {
var_dump([
'x-projectId' => $projectId,
'projectId' => $project->getId(),