Added vcsInstallationInternalId as attribute

This commit is contained in:
Khushboo Verma
2023-04-13 22:47:25 +05:30
parent 3e5e20fa90
commit 1efdd29bb6
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -566,6 +566,17 @@ $collections = [
'array' => false,
'filters' => []
],
[
'$id' => ID::custom('vcsInstallationInternalId'),
'type' => Database::VAR_STRING,
'format' => '',
'size' => Database::LENGTH_KEY,
'signed' => true,
'required' => true,
'default' => null,
'array' => false,
'filters' => []
],
[
'$id' => ID::custom('projectId'),
'type' => Database::VAR_STRING,
+2
View File
@@ -533,6 +533,7 @@ App::put('/v1/functions/:functionId')
Query::limit(100),
]);
$vcsInstallationsId = $vcsInstallations->getId();
$vcsInstallationInternalId = $vcsInstallations->getInternalId();
//Add document in VCS map collection
$vcs_repos = new Document([
@@ -543,6 +544,7 @@ App::put('/v1/functions/:functionId')
Permission::delete(Role::any()),
],
'vcsInstallationId' => $vcsInstallationsId,
'vcsInstallationInternalId' => $vcsInstallationInternalId,
'projectId' => $project->getId(),
'projectInternalId' => $projectInternalId,
'repositoryId' => $repositoryId,