remove callback from user update

This way it continues to evaluate and also execute the group update.
This commit is contained in:
Phillip Thelen
2014-06-08 18:37:43 +02:00
parent e01ff99610
commit 3aa8c885cf
+1 -1
View File
@@ -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, cb);
User.update({_id:group.quest.leader}, update);
}
group.quest = {key:null,progress:{},leader:null};
group.markModified('quest');