fix: LINE webhook verification 200; fix tsgo error (#16582) (thanks @arosstale)

This commit is contained in:
Peter Steinberger
2026-02-15 00:19:16 +01:00
parent 4f2f641950
commit abf42abd41
4 changed files with 8 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ export function createLineWebhookMiddleware(
if (rawBody) {
const body = parseWebhookBody(req, rawBody);
if (body && Array.isArray(body.events) && body.events.length === 0) {
logVerbose("line: webhook verification request (empty events, no signature) 200 OK");
logVerbose("line: webhook verification request (empty events, no signature) - 200 OK");
res.status(200).json({ status: "ok" });
return;
}