feat(admin): add detailed send log viewer with extended fields

This commit is contained in:
RhenCloud committed 2026-08-03 05:19:02 +08:00
1 parent 3a6a2cbbc5
commit dcbe93be91
14 files changed
+460 -42

No files matched your search

+2 -1
View File
@@ -3,12 +3,13 @@ import type { WebhookEvent } from "../types";
export function parseEvent(headers: Record<string, string>, body: string): WebhookEvent | null {
const event = headers["x-github-event"];
const signature = headers["x-hub-signature-256"];
const deliveryId = headers["x-github-delivery"];
if (!event) return null;
try {
const payload = JSON.parse(body);
return { event, payload, signature };
return { event, payload, signature, deliveryId };
} catch {
return null;
}