diff --git a/server.js b/server.js index 7beed01..23f1629 100644 --- a/server.js +++ b/server.js @@ -41,6 +41,8 @@ app.post("/report", async (req, res) => { const url = `https://n8n.local.jzitnik.dev/webhook/${process.env.WEBHOOK_UUID}`; + console.log(url) + const resp = await fetch(url, { method: "POST", headers: { @@ -49,8 +51,6 @@ app.post("/report", async (req, res) => { body: `${content}\n\nClass: ${className}\nLocation: ${location}`, }); - console.log(resp); - if (!resp.ok) { throw new Error(`Request failed`); }