Added body console log

This commit is contained in:
Sebastian Seedorf
2022-01-26 02:21:27 +01:00
parent 736040d9f8
commit 450fd7a0cd

View File

@@ -51,7 +51,7 @@ app.post('/', async (req: Request, res: Response) => {
return return
} }
const body: PushWebhook = req.body const body: PushWebhook = req.body
console.log(body) console.log(JSON.stringify(body, null, 2))
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