feat(analytics): track cron count

This commit is contained in:
Tyler Renelle
2015-03-26 11:15:23 -06:00
committed by Kevin Gisi
parent e9baafcbc8
commit e46789c303
4 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ api.update = function(req, res, next) {
api.cron = function(req, res, next) {
var user = res.locals.user,
progress = user.fns.cron(),
progress = user.fns.cron({ga:ga}),
ranCron = user.isModified(),
quest = shared.content.quests[user.party.quest.key];
+2 -1
View File
@@ -145,7 +145,8 @@ var UserSchema = new Schema({
// Used to track the status of recapture emails sent to each user,
// can be 0 - no email sent - 1, 2, 3 or 4 - 4 means no more email will be sent to the user
recaptureEmailsPhase: {type: Number, 'default': 0},
communityGuidelinesAccepted: {type: Boolean, 'default': false}
communityGuidelinesAccepted: {type: Boolean, 'default': false},
cronCount: {type:Number, 'default':0}
},
history: {
exp: Array, // [{date: Date, value: Number}], // big peformance issues if these are defined