mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
adding region query to deleteProjectsByTeam
This commit is contained in:
parent
dedcdc2e0e
commit
62effa7bc4
1 changed files with 2 additions and 3 deletions
|
|
@ -496,9 +496,8 @@ class Deletes extends Action
|
|||
{
|
||||
|
||||
$projects = $dbForPlatform->find('projects', [
|
||||
Query::equal('teamInternalId', [$document->getInternalId(),
|
||||
Query::equal('region', System::getEnv('_APP_REGION', 'default'))
|
||||
])
|
||||
Query::equal('teamInternalId', [$document->getInternalId()]),
|
||||
Query::equal('region', [System::getEnv('_APP_REGION', 'default')])
|
||||
]);
|
||||
|
||||
foreach ($projects as $project) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue