Add timestamping to script

This commit is contained in:
Pieter Vander Vennet 2023-12-01 22:34:09 +01:00
parent 9994258707
commit 80a3fdc1a6

View file

@ -83,6 +83,7 @@ async function handlePost(req: http.IncomingMessage, res: ServerResponse) {
await new Promise((resolve) => req.on("end", resolve))
console.log(new Date().toISOString())
let parsed: any
try {
parsed = JSON.parse(body)