cleanup logs

This commit is contained in:
Andras Bacsai
2022-09-06 08:01:04 +02:00
parent 867f06d813
commit 936baf676e
22 changed files with 15 additions and 69 deletions

View File

@@ -100,8 +100,7 @@ export async function gitHubEvents(request: FastifyRequest<GitHubEvents>): Promi
const checksum = Buffer.from(githubSignature, 'utf8');
//@ts-ignore
if (checksum.length !== digest.length || !crypto.timingSafeEqual(digest, checksum)) {
console.log('SHA256 checksum failed. Are you doing something fishy?')
// throw { status: 500, message: 'SHA256 checksum failed. Are you doing something fishy?'
throw { status: 500, message: 'SHA256 checksum failed. Are you doing something fishy?' }
};
}