fix(#14): Fix invalid response

This commit is contained in:
Josh Creek
2024-07-05 15:07:33 +01:00
parent 337bc648ca
commit 103ee16cec
+3 -4
View File
@@ -82,10 +82,9 @@ export const POST: RequestHandler = async ({ request }) => {
}
// Return a response to acknowledge receipt of the event
return {
status: 200,
body: { received: true }
};
return new Response(JSON.stringify({ received: true }), {
status: 200
});
} catch (err) {
console.log(`Webhook Error: ${err.message}`);
return {