From a4b078e82020b6df1c901957be28e9e28fb5bb53 Mon Sep 17 00:00:00 2001 From: Oyatillo <105904746+BilagoNet@users.noreply.github.com> Date: Wed, 13 Nov 2024 01:02:07 +0500 Subject: [PATCH] fix: correctly set return value for bun webhook adapter --- src/convenience/frameworks.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/convenience/frameworks.ts b/src/convenience/frameworks.ts index d5ab0846..3ff8ce87 100644 --- a/src/convenience/frameworks.ts +++ b/src/convenience/frameworks.ts @@ -309,6 +309,9 @@ const bun: BunAdapter = (request) => { unauthorized: () => { resolveResponse(unauthorized()); }, + handlerReturn: new Promise((resolve) => { + resolveResponse = resolve; + }), }; };