mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Delete project team when project gets deleted
This commit is contained in:
@@ -424,6 +424,10 @@ $utopia->delete('/v1/projects/:projectId')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$consoleDB->deleteDocument($project->getAttribute('teamId', null))) {
|
||||
throw new Exception('Failed to remove project team from DB', 500);
|
||||
}
|
||||
|
||||
if (!$consoleDB->deleteDocument($projectId)) {
|
||||
throw new Exception('Failed to remove project from DB', 500);
|
||||
|
||||
Reference in New Issue
Block a user