chore(promo): end gift subs promo

This commit is contained in:
Sabe Jones
2017-01-07 15:42:03 +00:00
parent 857aa5827b
commit 1c859fc91f
4 changed files with 2 additions and 18 deletions

View File

@@ -75,12 +75,10 @@ function sendSubscriptionNotification ({
}
let text;
let timestamp = new Date();
if (!recipient.id) {
text = `${buyer.name} ${buyer.id} ${buyer.email} bought a ${months}-month recurring subscription using ${paymentMethod} on ${timestamp}`;
} else if (recipient.id === buyer.id) {
if (recipient.id) {
text = `${buyer.name} ${buyer.id} ${buyer.email} bought a ${months}-month gift subscription for ${recipient.name} ${recipient.id} ${recipient.email} using ${paymentMethod} on ${timestamp}`;
} else {
text = `${buyer.name} ${buyer.id} ${buyer.email} bought a ${months}-month gift subscription for ${recipient.name} ${recipient.id} ${recipient.email} and got a promo using ${paymentMethod} on ${timestamp}`;
text = `${buyer.name} ${buyer.id} ${buyer.email} bought a ${months}-month recurring subscription using ${paymentMethod} on ${timestamp}`;
}
subscriptionSlack.send({