mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
chore: address review comments
This commit is contained in:
parent
4a3b8fb70e
commit
2bf247053d
1 changed files with 7 additions and 9 deletions
|
|
@ -455,17 +455,15 @@ class Deletes extends Action
|
||||||
Query::equal('projectInternalId', [$projectInternalId])
|
Query::equal('projectInternalId', [$projectInternalId])
|
||||||
], $dbForConsole);
|
], $dbForConsole);
|
||||||
|
|
||||||
// Delete VCS Repositories and Comments
|
// Delete VCS Repositories
|
||||||
$this->deleteByGroup('repositories', [
|
$this->deleteByGroup('repositories', [
|
||||||
Query::equal('projectInternalId', [$projectInternalId]),
|
Query::equal('projectInternalId', [$projectInternalId]),
|
||||||
], $dbForConsole, function (Document $document) use ($dbForConsole) {
|
], $dbForConsole);
|
||||||
$providerRepositoryId = $document->getAttribute('providerRepositoryId', '');
|
|
||||||
$projectInternalId = $document->getAttribute('projectInternalId', '');
|
// Delete VCS commments
|
||||||
$this->deleteByGroup('vcsComments', [
|
$this->deleteByGroup('vcsComments', [
|
||||||
Query::equal('providerRepositoryId', [$providerRepositoryId]),
|
Query::equal('projectInternalId', [$projectInternalId]),
|
||||||
Query::equal('projectInternalId', [$projectInternalId]),
|
], $dbForConsole);
|
||||||
], $dbForConsole);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Delete metadata tables
|
// Delete metadata tables
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue