Skip to content

Commit

Permalink
fix: sends pushover ttl only if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilian-krauss committed May 26, 2023
1 parent 8d05d80 commit a0d0d5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/notification-providers/pushover.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class Pushover extends NotificationProvider {
"sound": notification.pushoversounds,
"priority": notification.pushoverpriority,
"title": notification.pushovertitle,
"ttl": notification.pushoverttl,
"retry": "30",
"expire": "3600",
"html": 1,
Expand All @@ -25,6 +24,9 @@ class Pushover extends NotificationProvider {
if (notification.pushoverdevice) {
data.device = notification.pushoverdevice;
}
if (notification.pushoverttl) {
data.ttl = notification.pushoverttl;
}

try {
if (heartbeatJSON == null) {
Expand Down

0 comments on commit a0d0d5b

Please sign in to comment.