From 7c43879c50d3639f7a2eb0e70764eba128c9fd4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Tue, 21 May 2024 13:55:16 +0100 Subject: [PATCH] fix: Use `flows_by_pk` --- e2e/tests/api-driven/src/flowStatusHistory/helpers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/tests/api-driven/src/flowStatusHistory/helpers.ts b/e2e/tests/api-driven/src/flowStatusHistory/helpers.ts index 6ebe28ba2c..808cb1c37d 100644 --- a/e2e/tests/api-driven/src/flowStatusHistory/helpers.ts +++ b/e2e/tests/api-driven/src/flowStatusHistory/helpers.ts @@ -20,16 +20,16 @@ export const cleanup = async () => { interface GetFlowStatus { flows: { status: FlowStatus; - }[]; + }; } export const getFlowStatus = async (flowId: string) => { const { - flows: [{ status }], + flows: { status }, } = await $admin.client.request( gql` query GetFlowStatus($flowId: uuid!) { - flows(where: { id: { _eq: $flowId } }) { + flows: flows_by_pk(id: $flowId) { status } }