allow users to trigger "missed day" manually from Restore modal

This commit is contained in:
Tyler Renelle
2013-11-05 17:11:06 -08:00
parent 1d5296880b
commit 188db745fc
3 changed files with 24 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ habitrpg.controller("FooterCtrl", ['$scope', '$rootScope', 'User', '$http', 'Not
*/
$scope.addMissedDay = function(){
var dayBefore = moment(User.user.lastCron).subtract('days', 1).toDate();
User.set({lastCron: dayBefore});
User.set('lastCron', dayBefore);
Notification.text('-1 day, remember to refresh');
}
$scope.addTenGems = function(){