1
0

fix: I HATE MY LIFE
All checks were successful
Remote Deploy / deploy (push) Successful in 3s

This commit is contained in:
2025-10-24 07:51:54 +02:00
parent 4714cff0b6
commit 3a7e3517d0

View File

@@ -38,7 +38,7 @@ app.post("/report", async (req, res) => {
const url = `https://n8n.local.jzitnik.dev/webhook/${process.env.WEBHOOK_UUID}`;
const res = await fetch(url, {
const resp = await fetch(url, {
method: "POST",
headers: {
"Content-Type": "text/plain",
@@ -46,7 +46,7 @@ app.post("/report", async (req, res) => {
body: `${content}\n\nClass: ${className}\nLocation: ${location}`,
});
if (!res.ok) {
if (!resp.ok) {
throw new Error(`Request failed`);
}