mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Correct method to correctly add an hourglass in debug menu
This commit is contained in:
@@ -90,9 +90,9 @@ function($scope, $rootScope, User, $http, Notification, ApiUrl) {
|
||||
};
|
||||
|
||||
$scope.addHourglass = function(){
|
||||
User.set({
|
||||
'purchased.plan.consecutive.trinkets': User.user.purchased.plan.consecutive.trinkets + 1,
|
||||
});
|
||||
$http.post(ApiUrl.get() + '/api/v2/user/addHourglass').success(function(){
|
||||
User.log({});
|
||||
})
|
||||
};
|
||||
|
||||
$scope.addGold = function(){
|
||||
|
||||
Reference in New Issue
Block a user