Skip to content

Commit 7a798ab

Browse files
committed
fix github response
1 parent f080a7b commit 7a798ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.mjs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export async function dispatchWorkflow(distinctId: string): Promise<void> {
3131
});
3232

3333
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
34-
if (response.status !== 204) {
34+
if (!(response.status == 204 || response.status == 200)) {
3535
throw new Error(
36-
`Failed to dispatch action, expected 204 but received ${response.status}`,
36+
`Failed to dispatch action, expected 200 or 204 but received ${response.status}`,
3737
);
3838
}
3939

0 commit comments

Comments
 (0)