From adbf766eb3b23752a72a0feee109c45d95be6c40 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Tue, 11 Feb 2025 21:19:30 +0800 Subject: [PATCH] console.log type in webhook --- src/routes/webhook/tradingview/+server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/webhook/tradingview/+server.ts b/src/routes/webhook/tradingview/+server.ts index 4d0b1cf..232a08e 100644 --- a/src/routes/webhook/tradingview/+server.ts +++ b/src/routes/webhook/tradingview/+server.ts @@ -4,6 +4,7 @@ import { z } from 'zod' export const POST = async ({ locals, request }) => { const type = request.headers.get('Content-Type') + console.log(type) if (type !== 'application/json') return new Response() const body = await request.json()