fix(notification): sms subject output (#298)

This commit is contained in:
ththiem
2020-09-26 05:28:46 -07:00
committed by GitHub
parent 0aa7ab596c
commit 03755d5eb1
3 changed files with 9 additions and 4 deletions
+7 -2
View File
@@ -54,12 +54,17 @@ export const Print = {
return `${buildProductString(link, store)} :: CAPTCHA`;
},
inStock(link: Link, store: Store, color?: boolean): string {
inStock(link: Link, store: Store, color?: boolean, sms?: boolean): string {
if (color) {
return chalk.bgGreen.white.bold(`🚀🚨 ${buildProductString(link, store, false)} :: IN STOCK 🚨🚀`);
}
return `🚀🚨 ${buildProductString(link, store)} :: IN STOCK 🚨🚀`;
const productString = `${buildProductString(link, store)} :: IN STOCK`;
if (sms) {
return productString;
}
return `🚀🚨 ${productString} 🚨🚀`;
},
inStockWaiting(link: Link, store: Store, color?: boolean): string {
if (color) {