mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
[#1692] don't sync score to challenge's rewards
This commit is contained in:
parent
0892f93b75
commit
8b1ef412b2
1 changed files with 1 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue