Add remaining changes after sync with 1.7.x

This commit is contained in:
Matej Bačo
2025-03-20 16:48:09 +01:00
parent cb85cfc5d9
commit 2dcebf3083
5 changed files with 32 additions and 32 deletions
@@ -300,7 +300,7 @@ class Create extends Base
];
$schedule = $dbForPlatform->createDocument('schedules', new Document([
'region' => System::getEnv('_APP_REGION', 'default'),
'region' => $project->getAttribute('region'),
'resourceType' => ScheduleExecutions::getSupportedResource(),
'resourceId' => $execution->getId(),
'resourceInternalId' => $execution->getInternalId(),
@@ -207,7 +207,7 @@ class Create extends Base
$schedule = Authorization::skip(
fn () => $dbForPlatform->createDocument('schedules', new Document([
'region' => System::getEnv('_APP_REGION', 'default'), // Todo replace with projects region
'region' => $project->getAttribute('region'),
'resourceType' => 'function',
'resourceId' => $function->getId(),
'resourceInternalId' => $function->getInternalId(),