mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Squashed commit of the following:
commit 0db0a69f0fa00d831b7d90340e045097e8d92343 Author: Sabe Jones <sabrecat@gmail.com> Date: Tue Jul 16 10:01:49 2019 -0500 fix(groups): return 0, not empty, when skipping downscore on Dailies fixes #11231 commit 1bf5bc714f660345f37bcc4e3587143341521c65 Author: Sabe Jones <sabrecat@gmail.com> Date: Tue Jul 16 09:48:28 2019 -0500 fix(groups): correct task creation button commit 90908211200bc4a3eb204178df5c812ffcd09f37 Author: Sabe Jones <sabrecat@gmail.com> Date: Tue Jul 16 09:46:04 2019 -0500 fix(groups): clear approval status at cron for Habits and Dailies commit 57e8dd0252c3ea45dd6fa1a7670ee197f32e76e5 Merge: d31b0a2d0c9a56e8f3Author: Sabe Jones <sabrecat@gmail.com> Date: Tue Jul 16 09:33:27 2019 -0500 Merge branch 'develop' into sabrecat/group-tasks commit d31b0a2d0e3b7a46235696e9b05fa734ac29a2e5 Merge: f2185a91b043696c22Author: SabreCat <sabrecat@gmail.com> Date: Mon Jun 24 14:58:26 2019 +0000 Merge branch 'develop' into sabrecat/group-tasks commit f2185a91bde554c7eb22cd6bdfc1ef9227f1e765 Author: Sabe Jones <sabrecat@gmail.com> Date: Tue Jun 18 10:10:10 2019 -0500 fix(groups): divide task delta by number of assigned users commit af0cde52f22129312d0102ecc5571f59aa2e396e Author: Sabe Jones <sabrecat@gmail.com> Date: Tue Jun 18 10:06:01 2019 -0500 fix(groups): remove chat spam commit c1c810967a9e34155948a9164862125517372268 Merge: bf4f3fb08f987585cfAuthor: Sabe Jones <sabrecat@gmail.com> Date: Tue Jun 18 08:15:28 2019 -0500 Merge branch 'develop' into sabrecat/group-tasks commit bf4f3fb08491b4c4e1dbfaa58a2a6510c3cb78aa Author: Sabe Jones <sabrecat@gmail.com> Date: Thu May 23 11:29:01 2019 -0500 fix(test): expect new task class from store commit ae0379c80519523f68d4d606e1cc4bed8e9e49ec Merge: ce5096e11664cf5a47Author: Sabe Jones <sabrecat@gmail.com> Date: Thu May 23 11:25:15 2019 -0500 Merge branch 'develop' into sabrecat/group-tasks commit ce5096e116558419e4a73e8b23a58c78a1f2ab9b Author: Sabe Jones <sabrecat@gmail.com> Date: Thu May 23 11:02:01 2019 -0500 feat(group-plans): clarify non-interactive controls on task board commit ff3cec9530e30d51c43171d6f97d3888ff200352 Author: Sabe Jones <sabrecat@gmail.com> Date: Tue May 21 11:10:50 2019 -0500 feat(group-plans): score shared task when user scores it
This commit is contained in:
@@ -200,8 +200,8 @@ TaskSchema.methods.scoreChallengeTask = async function scoreChallengeTask (delta
|
||||
if (chalTask.type === 'habit' || chalTask.type === 'daily') {
|
||||
// Add only one history entry per day
|
||||
const history = chalTask.history;
|
||||
const lastChallengHistoryIndex = history.length - 1;
|
||||
const lastHistoryEntry = history[lastChallengHistoryIndex];
|
||||
const lastChallengeHistoryIndex = history.length - 1;
|
||||
const lastHistoryEntry = history[lastChallengeHistoryIndex];
|
||||
|
||||
if (
|
||||
lastHistoryEntry && lastHistoryEntry.date &&
|
||||
@@ -222,7 +222,7 @@ TaskSchema.methods.scoreChallengeTask = async function scoreChallengeTask (delta
|
||||
}
|
||||
}
|
||||
|
||||
chalTask.markModified(`history.${lastChallengHistoryIndex}`);
|
||||
chalTask.markModified(`history.${lastChallengeHistoryIndex}`);
|
||||
} else {
|
||||
const historyEntry = {
|
||||
date: Number(new Date()),
|
||||
|
||||
Reference in New Issue
Block a user