feat(notification): add pushover priority setting (#186)

This commit is contained in:
John Dyer
2020-09-23 23:25:42 -04:00
committed by GitHub
parent f9ed774595
commit f277172191
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -88,6 +88,7 @@ const notifications = {
playSound: envOrString(process.env.PLAY_SOUND),
pushBulletApiKey: envOrString(process.env.PUSHBULLET),
pushover: {
priority: envOrString(process.env.PUSHOVER_PRIORITY),
token: envOrString(process.env.PUSHOVER_TOKEN),
username: envOrString(process.env.PUSHOVER_USER)
},
+1
View File
@@ -12,6 +12,7 @@ const push = new Push({
export function sendPushoverNotification(link: Link, store: Store) {
const message = {
message: link.cartUrl ? link.cartUrl : link.url,
priority: pushover.priority,
title: Print.inStock(link, store)
};