Fixed experience not appearing as a variable after computation
This commit is contained in:
@@ -61,7 +61,7 @@ const insertExperienceForCreature = function({experience, creatureId, userId}){
|
||||
}
|
||||
experience.creatureId = creatureId;
|
||||
let id = Experiences.insert(experience);
|
||||
recomputeCreatureById(creatureId);
|
||||
computeCreature(creatureId);
|
||||
return id;
|
||||
};
|
||||
|
||||
@@ -135,7 +135,7 @@ const removeExperience = new ValidatedMethod({
|
||||
}
|
||||
experience.creatureId = creatureId;
|
||||
let numRemoved = Experiences.remove(experienceId);
|
||||
recomputeCreatureById(creatureId);
|
||||
computeCreature(creatureId);
|
||||
return numRemoved;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user