chore: move notification test, other refactoring (#111)

This commit is contained in:
Jef LeCompte
2020-09-20 13:18:32 -04:00
committed by GitHub
parent a3fc07daf0
commit 2a1f15041e
13 changed files with 40 additions and 32 deletions
+3 -3
View File
@@ -8,16 +8,16 @@ const push = new Push({
token: pushover.token
});
export function sendPushoverNotification(text: string) {
export function sendPushoverNotification(cartUrl: string) {
const message = {
message: text
message: cartUrl
};
push.send(message, (err: Error, result: string) => {
if (err) {
Logger.error(err);
} else {
Logger.info(`✔ Pushover notification sent: ${result}`);
Logger.info(`↗ pushover notification sent: ${result}`);
}
});
}