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(){
|
$scope.addHourglass = function(){
|
||||||
User.set({
|
$http.post(ApiUrl.get() + '/api/v2/user/addHourglass').success(function(){
|
||||||
'purchased.plan.consecutive.trinkets': User.user.purchased.plan.consecutive.trinkets + 1,
|
User.log({});
|
||||||
});
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.addGold = function(){
|
$scope.addGold = function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user