mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
allow users to trigger "missed day" manually from Restore modal
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user