mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
fix(quests): refunding scrolls. add .exec() to User.update() without callback
This commit is contained in:
parent
efc9a6e715
commit
b7cf71773a
1 changed files with 1 additions and 1 deletions
|
|
@ -610,7 +610,7 @@ api.questAbort = function(req, res, next){
|
|||
if (group.quest.active) {
|
||||
var update = {$inc:{}};
|
||||
update['$inc']['items.quests.' + group.quest.key] = 1;
|
||||
User.update({_id:group.quest.leader}, update);
|
||||
User.update({_id:group.quest.leader}, update).exec();
|
||||
}
|
||||
group.quest = {key:null,progress:{},leader:null};
|
||||
group.markModified('quest');
|
||||
|
|
|
|||
Loading…
Reference in a new issue