From 809b3b462ecd32afe25b171b8d2d3fc654e67151 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Fri, 8 Apr 2022 18:32:24 +0100 Subject: [PATCH] Ignore achieved targets on recently-interacted-with --- server/src/utils/db.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/utils/db.ts b/server/src/utils/db.ts index 1daaf10cd..98570d03e 100644 --- a/server/src/utils/db.ts +++ b/server/src/utils/db.ts @@ -210,6 +210,7 @@ export async function GetRecentlyInteractedGoals( const query = Object.assign( { wasInstantlyAchieved: false, + achieved: false, lastInteraction: { $ne: null }, }, baseQuery @@ -276,6 +277,7 @@ export async function GetRecentlyInteractedMilestones( const query = Object.assign( { lastInteraction: { $ne: null }, + achieved: false, wasInstantlyAchieved: false, }, baseQuery