Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't send referral email
  • Loading branch information
hijohnnylin committed Mar 1, 2020
1 parent 1959a25 commit 34dbbfb
Show file tree
Hide file tree
Showing 2 changed files with 430 additions and 221 deletions.
2 changes: 1 addition & 1 deletion code/controllers/webhook-controller.js
Expand Up @@ -134,7 +134,7 @@ addRawBody,
var isFirstPayment = false;
if (event.data.object.amount_remaining <= 0 && subscriptionItem.amount > 0 && event.data.object.number.endsWith("0002")) {
isFirstPayment = true;
Email.sendReferralPromo(thisUser.email, thisUser.referralCode);
//Email.sendReferralPromo(thisUser.email, thisUser.referralCode);
}
if (thisUser.referredBy) {
Logger.info("this user was referred by " + thisUser.referredBy);
Expand Down

0 comments on commit 34dbbfb

Please sign in to comment.