From ba78710c82a367512be2bce50e2da5b42035b63d Mon Sep 17 00:00:00 2001 From: terakilobyte Date: Tue, 5 May 2015 21:21:13 -0400 Subject: [PATCH] Go with calculating streaks with fresh data as cached mongo can"t be relied upon --- controllers/user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/user.js b/controllers/user.js index 6f449cad6c..43c8b908b4 100644 --- a/controllers/user.js +++ b/controllers/user.js @@ -301,6 +301,7 @@ exports.returnUser = function(req, res, next) { timeKeys = timeKeys.reverse(); tmpLongest = 1; + user.currentStreak = 1; var today = moment(Date.now()).format('YYYY-MM-DD'); if (moment(today).toString() === moment(timeKeys[0]).toString() ||