1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Change projectId to projectInternalId

This commit is contained in:
Khushboo Verma 2023-11-03 15:32:50 +05:30
parent 9be32184d6
commit 4a3b8fb70e

View file

@ -457,13 +457,13 @@ class Deletes extends Action
// Delete VCS Repositories and Comments
$this->deleteByGroup('repositories', [
Query::equal('installationInternalId', [$projectInternalId]),
Query::equal('projectInternalId', [$projectInternalId]),
], $dbForConsole, function (Document $document) use ($dbForConsole) {
$providerRepositoryId = $document->getAttribute('providerRepositoryId', '');
$projectId = $document->getAttribute('projectId', '');
$projectInternalId = $document->getAttribute('projectInternalId', '');
$this->deleteByGroup('vcsComments', [
Query::equal('providerRepositoryId', [$providerRepositoryId]),
Query::equal('projectId', [$projectId]),
Query::equal('projectInternalId', [$projectInternalId]),
], $dbForConsole);
});