Skip to content

Commit ddd9b11

Browse files
author
Sylvestre
authored
filtering out (#807)
1 parent cbe373b commit ddd9b11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ export async function deploy(
104104
let authError: null | "unauthenticated" | "forbidden" = null;
105105
try {
106106
if (apiKey) {
107-
const memberTiers = new Set(["starter_2024", "pro_2024", "enterprise_2024"]);
107+
const invalidTiers = new Set(["basic", "enterprise", "public", "pro", "pro_enterprise"]);
108108
currentUser = await apiClient.getCurrentUser();
109109
// List of valid workspaces that can be used to create projects.
110110
currentUser.workspaces = currentUser.workspaces.filter(
111-
(w) => (w.role === "owner" || w.role === "member") && memberTiers.has(w.tier)
111+
(w) => (w.role === "owner" || w.role === "member") && !invalidTiers.has(w.tier)
112112
);
113113
}
114114
} catch (error) {

0 commit comments

Comments
 (0)