fix: editing a goal should edit *all* subscriptions, not just one

this mongodb footgun is gonna kill me one day
This commit is contained in:
zkldi
2023-01-26 09:16:37 +00:00
parent 3581fd7896
commit 439477a31c
+2 -1
View File
@@ -721,7 +721,8 @@ export async function EditGoal(oldGoal: GoalDocument, newGoal: GoalDocument) {
},
{
$set: { goalID: newGoalID },
}
},
{ multi: true }
);
// update any dangling quest references