mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
adding region query to deleteProjectsByTeam
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user