mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 11:36:45 +00:00
fix(groups): add missing markModified
This commit is contained in:
parent
eaec39188e
commit
63c9b7a894
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ async function updateTeamTasks (team) {
|
|||
const dateTerminated = new Date(team.purchased.plan.dateTerminated);
|
||||
if (dateTerminated < new Date()) {
|
||||
team.purchased.plan.customerId = undefined;
|
||||
team.markModified('purchased.plan');
|
||||
return team.save();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue