From 439477a31c3e1ffb95b773f5b96dafedc8734ba8 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 25 Jan 2023 16:29:41 +0000 Subject: [PATCH] fix: editing a goal should edit *all* subscriptions, not just one this mongodb footgun is gonna kill me one day --- server/src/lib/targets/goals.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/lib/targets/goals.ts b/server/src/lib/targets/goals.ts index 3a7cb7fe5..846159dfc 100644 --- a/server/src/lib/targets/goals.ts +++ b/server/src/lib/targets/goals.ts @@ -721,7 +721,8 @@ export async function EditGoal(oldGoal: GoalDocument, newGoal: GoalDocument) { }, { $set: { goalID: newGoalID }, - } + }, + { multi: true } ); // update any dangling quest references