diff --git a/dist/index.mjs b/dist/index.mjs index 0dc0f29..6df72c4 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -24067,9 +24067,9 @@ async function dispatchWorkflow(distinctId) { distinct_id: distinctId } }); - if (response.status !== 204) { + if (!(response.status == 204 || response.status == 200)) { throw new Error( - `Failed to dispatch action, expected 204 but received ${response.status}` + `Failed to dispatch action, expected 200 or 204 but received ${response.status}` ); } core3.info( diff --git a/src/api.ts b/src/api.ts index f1944da..51bc88c 100644 --- a/src/api.ts +++ b/src/api.ts @@ -31,9 +31,9 @@ export async function dispatchWorkflow(distinctId: string): Promise { }); // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (response.status !== 204) { + if (!(response.status == 204 || response.status == 200)) { throw new Error( - `Failed to dispatch action, expected 204 but received ${response.status}`, + `Failed to dispatch action, expected 200 or 204 but received ${response.status}`, ); }