1
0
Fork 0
mirror of synced 2024-07-05 06:31:08 +12:00

Fix missing resourceInternalId on deployments

This commit is contained in:
Steven Nguyen 2023-09-20 19:26:23 -07:00
parent c5e059c118
commit 9ca82b7662
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -84,6 +84,7 @@ $redeployVcs = function (Request $request, Document $function, Document $project
Permission::delete(Role::any()), Permission::delete(Role::any()),
], ],
'resourceId' => $function->getId(), 'resourceId' => $function->getId(),
'resourceInternalId' => $function->getInternalId(),
'resourceType' => 'functions', 'resourceType' => 'functions',
'entrypoint' => $entrypoint, 'entrypoint' => $entrypoint,
'commands' => $function->getAttribute('commands', ''), 'commands' => $function->getAttribute('commands', ''),

View file

@ -50,6 +50,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId
$functionId = $resource->getAttribute('resourceId'); $functionId = $resource->getAttribute('resourceId');
$function = Authorization::skip(fn () => $dbForProject->getDocument('functions', $functionId)); $function = Authorization::skip(fn () => $dbForProject->getDocument('functions', $functionId));
$functionInternalId = $function->getInternalId();
$deploymentId = ID::unique(); $deploymentId = ID::unique();
$repositoryId = $resource->getId(); $repositoryId = $resource->getId();
@ -173,6 +174,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId
Permission::delete(Role::any()), Permission::delete(Role::any()),
], ],
'resourceId' => $functionId, 'resourceId' => $functionId,
'resourceInternalId' => $functionInternalId,
'resourceType' => 'functions', 'resourceType' => 'functions',
'entrypoint' => $function->getAttribute('entrypoint'), 'entrypoint' => $function->getAttribute('entrypoint'),
'commands' => $function->getAttribute('commands'), 'commands' => $function->getAttribute('commands'),