chore: remove logs

This commit is contained in:
Miodec 2023-08-17 21:34:04 +02:00
parent 7f7d3339fd
commit dc7f70d55f

View file

@ -268,10 +268,6 @@ function authenticateGithubWebhook(): Handler {
const webhookSecret = process.env.GITHUB_WEBHOOK_SECRET;
console.log(webhookSecret);
console.log(authHeader);
console.log(JSON.stringify(req.body));
try {
if (!webhookSecret) {
throw new MonkeyError(500, "Missing Github Webhook Secret");
@ -286,9 +282,6 @@ function authenticateGithubWebhook(): Handler {
const untrusted = Buffer.from(authHeader as string, "ascii");
const isSignatureValid = crypto.timingSafeEqual(trusted, untrusted);
console.log(trusted.toString());
console.log(untrusted.toString());
if (!isSignatureValid) {
throw new MonkeyError(401, "Github webhook signature invalid");
}