From 658a08f8dc7f17df09da5e41167697f9993e435c Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 12 Jun 2026 23:40:09 -0400 Subject: [PATCH] x --- apps/backend/src/routes/line.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/backend/src/routes/line.ts b/apps/backend/src/routes/line.ts index d22eb28..4f79f63 100644 --- a/apps/backend/src/routes/line.ts +++ b/apps/backend/src/routes/line.ts @@ -10,8 +10,8 @@ const webhookHandler = async ({ request, body, set }: { request: Request, body: set.status = 400; return { error: 'Missing Signature' }; } - - // In our global onParse hook, we intercepted the body and returned it as a raw text string. + + // xxIn our global onParse hook, we intercepted the body and returned it as a raw text string. const rawBody = typeof body === 'string' ? body : JSON.stringify(body); if (!rawBody) { @@ -35,7 +35,7 @@ const webhookHandler = async ({ request, body, set }: { request: Request, body: try { const parsedBody = typeof body === 'string' ? JSON.parse(body) : body; const events: line.WebhookEvent[] = parsedBody.events || []; - + for (const event of events) { if (event.type === 'message' && event.message.type === 'text') { // Ignore verification dummy tokens