mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 12:17:37 +00:00
chore(misc): normalize logs (#242)
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import {Link} from '../store/model';
|
||||
import {Link, Store} from '../store/model';
|
||||
import {Logger, Print} from '../logger';
|
||||
import notifier from 'node-notifier';
|
||||
|
||||
export function sendDesktopNotification(cartUrl: string, link: Link) {
|
||||
export function sendDesktopNotification(link: Link, store: Store) {
|
||||
(async () => {
|
||||
const title = link.brand + ' ' + link.model + ' IN STOCK';
|
||||
const message = cartUrl;
|
||||
|
||||
notifier.notify({
|
||||
message,
|
||||
title
|
||||
message: link.cartUrl ? link.cartUrl : link.url,
|
||||
title: Print.inStock(link, store)
|
||||
});
|
||||
|
||||
Logger.info('✔ desktop notification sent');
|
||||
})();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user