From 608608aa562a835b87ee1a9e8f1485834bdda7d4 Mon Sep 17 00:00:00 2001 From: chiko Date: Mon, 27 Oct 2025 17:54:30 +0100 Subject: [PATCH] Bugfix in sendNotification() URL for Post Request returned a 404 because there was a " too much --- docker-compose.yml | 2 +- package.json | 2 +- src/sendNotification.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4cd5b90..b95a7bb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: app: - image: chiko/77th_eventcalendarntfy:v0.1.2 + image: chiko/77th_eventcalendarntfy:v0.1.3 build: . volumes: - ./data/db:/opt/app/data/db diff --git a/package.json b/package.json index 534bd0e..139d992 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.1.2", + "version": "0.1.3", "name": "77th_eventcalendernotification", "module": "./src/app.ts", "type": "module", diff --git a/src/sendNotification.ts b/src/sendNotification.ts index 88746c5..a310afb 100644 --- a/src/sendNotification.ts +++ b/src/sendNotification.ts @@ -7,7 +7,7 @@ export async function sendNotification(title: string, body: string, link?: strin } }); if ( ! ( process.env.notification_mock == "true" ) ) { - const response = await fetch(`${ process.env.apprise_https == "true" ? "https" : "http"}://${process.env.apprise_host ? process.env.apprise_host : "apprise"}:${process.env.apprise_port ? String(process.env.apprise_port) : "80" }/notify"`, { + const response = await fetch(`${ process.env.apprise_https == "true" ? "https" : "http"}://${process.env.apprise_host ? process.env.apprise_host : "apprise"}:${process.env.apprise_port ? String(process.env.apprise_port) : "80" }/notify`, { method: "POST", headers: { "Content-Type": "application/json" -- 2.49.1