Skip to content

Commit 6b8a7dd

Browse files
committed
🔧 Exit destroy user if no workspaces found
1 parent 65921bb commit 6b8a7dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/scripts/src/helpers/destroyUser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ export const destroyUser = async (userEmail?: string) => {
3434
},
3535
});
3636

37+
if (workspaces.length === 0) {
38+
console.log("No workspaces found");
39+
return;
40+
}
41+
3742
console.log(`Found ${workspaces.length} workspaces`);
3843

3944
if (

0 commit comments

Comments
 (0)