mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
Added MakerSquare email offer. Not emailing subscribers with next-steps offers.
This commit is contained in:
parent
7ebb2d0200
commit
5bc58ce996
1 changed files with 3 additions and 1 deletions
|
@ -723,12 +723,14 @@ sendNextStepsEmail = (user, now, daysAgo) ->
|
|||
'talent-buddy': isAdult
|
||||
'coding-campus': isAdult and Math.random() < 0.5 # TODO: geodetect UT and give priority
|
||||
'viking': isAdult and isFast
|
||||
'maker-square': isAdult and isFast
|
||||
#'mv-code-club': isKid # TODO: geodetect, get landing page URL
|
||||
nAdditionalOffers = 4 - _.filter(offers).length
|
||||
possibleAdditionalOffers = ['code-school', 'one-month', 'learnable', 'pluralsight']
|
||||
for offer in _.sample possibleAdditionalOffers, nAdditionalOffers
|
||||
offers[offer] = true
|
||||
# TODO: adjust template to not include any offers if user.isPremium()
|
||||
if user.isPremium()
|
||||
offers = null
|
||||
# TODO: do something with the preferredLanguage?
|
||||
context =
|
||||
email_id: sendwithus.templates.next_steps_email
|
||||
|
|
Loading…
Reference in a new issue