Try delete projects before team in case of incorrect password

This commit is contained in:
Jake Barnby committed 2023-01-25 14:20:43 +13:00
1 parent e71b79af53
commit f7b0832cc5
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`