Skip to content

Commit

Permalink
chore: revert wait until call
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Dec 2, 2024
1 parent e8e87b2 commit 9c88d7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default {
openAiClient,
});
bindHandlers(eventHandler);
ctx.waitUntil(eventHandler.webhooks.verifyAndReceive({ id, name: eventName, payload: await request.text(), signature: signatureSha256 }));
// ctx.waitUntil(eventHandler.webhooks.verifyAndReceive({ id, name: eventName, payload: await request.text(), signature: signatureSha256 }));
await eventHandler.webhooks.verifyAndReceive({ id, name: eventName, payload: await request.text(), signature: signatureSha256 });
return new Response("ok\n", { status: 200, headers: { "content-type": "text/plain" } });
} catch (error) {
return handleUncaughtError(error);
Expand Down

0 comments on commit 9c88d7c

Please sign in to comment.