Skip to content

Commit

Permalink
fix: Use flows_by_pk
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed May 21, 2024
1 parent 8dc5368 commit 7c43879
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/tests/api-driven/src/flowStatusHistory/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<GetFlowStatus>(
gql`
query GetFlowStatus($flowId: uuid!) {
flows(where: { id: { _eq: $flowId } }) {
flows: flows_by_pk(id: $flowId) {
status
}
}
Expand Down

0 comments on commit 7c43879

Please sign in to comment.