Added body console log

This commit is contained in:
Sebastian Seedorf
2022-01-26 02:16:00 +01:00
parent 05a08b9a38
commit 736040d9f8

View File

@@ -51,6 +51,7 @@ app.post('/', async (req: Request, res: Response) => {
return return
} }
const body: PushWebhook = req.body const body: PushWebhook = req.body
console.log(body)
if (body?.type !== "PUSH_ARTIFACT") { if (body?.type !== "PUSH_ARTIFACT") {
res.status(400).json({msg: "Only push hooks are allowed!"}) res.status(400).json({msg: "Only push hooks are allowed!"})
return return