Bugfix in sendNotification()

URL for Post Request returned a 404 because there was a " too much
This commit is contained in:
2025-10-27 17:54:30 +01:00
parent 8bcb2618a2
commit 608608aa56
3 changed files with 3 additions and 3 deletions

View File

@@ -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"