mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 06:27:38 +00:00
feat(pushover): add screenshot to push notification if available (#1552)
This commit is contained in:
@@ -19,14 +19,16 @@ export function sendPushoverNotification(link: Link, store: Store) {
|
||||
? {
|
||||
message: link.cartUrl ? link.cartUrl : link.url,
|
||||
priority: pushover.priority,
|
||||
title: Print.inStock(link, store)
|
||||
title: Print.inStock(link, store),
|
||||
...(link.screenshot && {file: `./${link.screenshot}`})
|
||||
}
|
||||
: {
|
||||
expire: pushover.expire,
|
||||
message: link.cartUrl ? link.cartUrl : link.url,
|
||||
priority: pushover.priority,
|
||||
retry: pushover.retry,
|
||||
title: Print.inStock(link, store)
|
||||
title: Print.inStock(link, store),
|
||||
...(link.screenshot && {file: `./${link.screenshot}`})
|
||||
};
|
||||
|
||||
push.send(message, (error: Error) => {
|
||||
|
||||
Reference in New Issue
Block a user