mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 08:47:43 +00:00
fix(notification): sms subject output (#298)
This commit is contained in:
+7
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user