We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e7892 commit d787c9bCopy full SHA for d787c9b
1 file changed
supabase/functions/send-email-for-new-chat-message/index.ts
@@ -35,10 +35,7 @@ const handler = async (_request: Request): Promise<Response> => {
35
}
36
37
if (_request.headers.get("x-peels-webhook-secret") !== webhookSecret) {
38
- return new Response(JSON.stringify({ error: "Unauthorized" }), {
39
- status: 401,
40
- headers: { "Content-Type": "application/json" },
41
- });
+ return jsonResponse({ error: "Unauthorized" }, 401);
42
43
44
// Prepare data
0 commit comments