mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 08:18:12 +03:00
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:
@@ -721,7 +721,8 @@ export async function EditGoal(oldGoal: GoalDocument, newGoal: GoalDocument) {
|
||||
},
|
||||
{
|
||||
$set: { goalID: newGoalID },
|
||||
}
|
||||
},
|
||||
{ multi: true }
|
||||
);
|
||||
|
||||
// update any dangling quest references
|
||||
|
||||
Reference in New Issue
Block a user