mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix: Fix quest progress button
This commit is contained in:
@@ -118,11 +118,15 @@ function($scope, $rootScope, User, $http, Notification, ApiUrl, Social) {
|
||||
});
|
||||
};
|
||||
|
||||
$scope.addBossQuestProgressUp = function(){
|
||||
//@TODO: Route?
|
||||
User.set({
|
||||
'party.quest.progress.up': User.user.party.quest.progress.up + 1000
|
||||
});
|
||||
$scope.addQuestProgress = function(){
|
||||
$http({
|
||||
method: "POST",
|
||||
url: 'api/v3/debug/quest-progress'
|
||||
})
|
||||
.then(function (response) {
|
||||
Notification.text('Quest progress increased');
|
||||
User.sync();
|
||||
})
|
||||
};
|
||||
|
||||
$scope.makeAdmin = function () {
|
||||
|
||||
Reference in New Issue
Block a user