mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 15:47:35 +00:00
chore: move notification test, other refactoring (#111)
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user