Skip to content

Commit 3bbe263

Browse files
committed
chore: changed matching for endpoint
1 parent f9ab2b8 commit 3bbe263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/questions.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const questionsInitProject = [
153153
message: "Choose your organization",
154154
choices: async () => {
155155
let client = await sdkForConsole(true);
156-
const { teams } = client.endpoint === "https://cloud.appwrite.io/v1"
156+
const { teams } = /.*appwrite\.io/.test(client.endpoint)
157157
? await paginate(organizationsList, { parseOutput: false, sdk: client }, 100, 'teams')
158158
: await paginate(teamsList, { parseOutput: false, sdk: client }, 100, 'teams');
159159

0 commit comments

Comments
 (0)