Fix missing resourceInternalId on deployments
This commit is contained in:
parent
c5e059c118
commit
9ca82b7662
2 changed files with 3 additions and 0 deletions
|
@ -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', ''),
|
||||||
|
|
|
@ -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'),
|
||||||
|
|
Loading…
Reference in a new issue