mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Try delete projects before team in case of incorrect password
This commit is contained in:
1 file changed
+2
-2
@@ -18,8 +18,6 @@
|
||||
|
||||
const deleteOrg = async () => {
|
||||
try {
|
||||
await sdkForConsole.teams.delete($organization.$id);
|
||||
|
||||
const projectList = await sdkForConsole.projects.list([
|
||||
Query.equal('teamId', $organization.$id),
|
||||
])
|
||||
@@ -28,6 +26,8 @@
|
||||
await sdkForConsole.projects.delete(project.$id, password);
|
||||
}));
|
||||
|
||||
await sdkForConsole.teams.delete($organization.$id);
|
||||
|
||||
addNotification({
|
||||
type: 'success',
|
||||
message: `${$organization.name} has been deleted`
|
||||
|
||||
Reference in new issue
Block a user