[#1692] don't sync score to challenge's rewards

This commit is contained in:
Tyler Renelle 2013-10-31 10:22:57 -07:00
parent 0892f93b75
commit 8b1ef412b2

View file

@ -82,6 +82,7 @@ function addTask(user, task) {
var syncScoreToChallenge = function(task, delta){
if (!task.challenge || !task.challenge.id) return;
if (task.type == 'reward') return; // we don't want to update the reward GP cost
Challenge.findById(task.challenge.id, function(err, chal){
if (err) throw err;
var t = chal.tasks[task.id]