revert last 2 commits

This commit is contained in:
Matteo Pagliazzi 2015-05-11 17:02:36 +02:00
parent e966de7bf0
commit 30fd8e26e6
2 changed files with 1 additions and 2 deletions

View file

@ -148,7 +148,6 @@ var UserSchema = new Schema({
recaptureEmailsPhase: {type: Number, 'default': 0},
// Needed to track the tip to send inside the email
weeklyRecapEmailsPhase: {type: Number, 'default': 0},
lastWeeklyRecap: {type: Date, 'default': Date.now},
communityGuidelinesAccepted: {type: Boolean, 'default': false},
cronCount: {type:Number, 'default':0}
},

View file

@ -61,7 +61,7 @@ module.exports.txnEmail = function(mailingInfoArray, emailType, variables, perso
var mailingInfoArray = Array.isArray(mailingInfoArray) ? mailingInfoArray : [mailingInfoArray];
var variables = [
{name: 'BASE_URL', content: 'https://habitrpg.com'}
{name: 'BASE_URL', content: baseUrl}
].concat(variables || []);
// It's important to pass at least a user with its `preferences` as we need to check if he unsubscribed