From 5ff656e06d6c9e9d829259a5e0a90cb64b5726eb Mon Sep 17 00:00:00 2001 From: qawolf-bot Date: Tue, 23 Apr 2024 17:04:15 +0000 Subject: [PATCH] Revision 6bb44c1 --- dist/index.js | 2 +- src/findOrCreateEnvironment.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 706deed..e376572 100644 --- a/dist/index.js +++ b/dist/index.js @@ -34457,7 +34457,7 @@ async function findOrCreateEnvironment({ qawolfApiKey, branch, pr, qaWolfTeamId, const multiBranchResponse = await axios_1.default.post(constants_1.qawolfGraphQLEndpoint, { query: ` query teamBranches($teamId: String!) { - teamBranches(where: { teamId: { equals: $teamId }}) { + teamBranches: activeTeamBranches(teamId: $teamId) { id environments{ id diff --git a/src/findOrCreateEnvironment.ts b/src/findOrCreateEnvironment.ts index 0be68d7..ac5f82a 100644 --- a/src/findOrCreateEnvironment.ts +++ b/src/findOrCreateEnvironment.ts @@ -122,7 +122,7 @@ export async function findOrCreateEnvironment({ { query: ` query teamBranches($teamId: String!) { - teamBranches(where: { teamId: { equals: $teamId }}) { + teamBranches: activeTeamBranches(teamId: $teamId) { id environments{ id