Skip to content

Commit c228c4b

Browse files
committed
fix: upstream response types fixed, can remove type assertion
1 parent 608120f commit c228c4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/api.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ export async function getWorkflowId(workflowFilename: string): Promise<number> {
7979
`Failed to get workflows, expected 200 but received ${response.status}`,
8080
);
8181
}
82-
// wrong type definition
83-
const workflows: typeof response.data.workflows = response.data;
8482

85-
workflowId = workflows.find((workflow) =>
83+
workflowId = response.data.find((workflow) =>
8684
new RegExp(sanitisedFilename).test(workflow.path),
8785
)?.id;
8886

0 commit comments

Comments
 (0)