fix(webhook): cast signature to string to fix TS2345

This commit is contained in:
OpenClaw Bot
2026-04-22 00:04:44 +00:00
parent 8fb517152a
commit fc6df3ae05

View File

@@ -53,7 +53,7 @@ export default async function handler(
secret: githubResult.githubWebhookSecret,
});
const verified = await webhooks.verify(JSON.stringify(githubBody), signature);
const verified = await webhooks.verify(JSON.stringify(githubBody), signature as string);
if (!verified) {
res.status(401).json({ message: "Unauthorized" });