mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-16 00:45:18 +00:00
fix(webhook): cast signature to string to fix TS2345
This commit is contained in:
@@ -53,7 +53,7 @@ export default async function handler(
|
|||||||
secret: githubResult.githubWebhookSecret,
|
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) {
|
if (!verified) {
|
||||||
res.status(401).json({ message: "Unauthorized" });
|
res.status(401).json({ message: "Unauthorized" });
|
||||||
|
|||||||
Reference in New Issue
Block a user