fix: use correct constant

This commit is contained in:
Chirag Aggarwal 2025-09-23 07:49:55 +05:30
parent 734d2ce512
commit 421ec6f3f8

View file

@ -235,7 +235,7 @@ class Create extends Base
$schedule = Authorization::skip(
fn () => $dbForPlatform->createDocument('schedules', new Document([
'region' => $project->getAttribute('region'),
'resourceType' => RESOURCE_TYPE_FUNCTIONS,
'resourceType' => SCHEDULE_RESOURCE_TYPE_FUNCTION,
'resourceId' => $function->getId(),
'resourceInternalId' => $function->getSequence(),
'resourceUpdatedAt' => DateTime::now(),