mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 02:02:19 +00:00
fix(teams): don't adjust source task value for rewards Fixes #12523
This commit is contained in:
parent
0c3b16ca74
commit
b680b6026b
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ TaskSchema.statics.sanitizeReminder = function sanitizeReminder (reminderObj) {
|
|||
TaskSchema.methods.scoreChallengeTask = async function scoreChallengeTask (delta, direction) {
|
||||
const chalTask = this;
|
||||
|
||||
chalTask.value += delta;
|
||||
if (chalTask.type !== 'reward') chalTask.value += delta;
|
||||
|
||||
if (chalTask.type === 'habit' || chalTask.type === 'daily') {
|
||||
// Add only one history entry per day
|
||||
|
|
|
|||
Loading…
Reference in a new issue