fix(groups): add missing markModified
This commit is contained in:
@@ -12,6 +12,7 @@ async function updateTeamTasks (team) {
|
|||||||
const dateTerminated = new Date(team.purchased.plan.dateTerminated);
|
const dateTerminated = new Date(team.purchased.plan.dateTerminated);
|
||||||
if (dateTerminated < new Date()) {
|
if (dateTerminated < new Date()) {
|
||||||
team.purchased.plan.customerId = undefined;
|
team.purchased.plan.customerId = undefined;
|
||||||
|
team.markModified('purchased.plan');
|
||||||
return team.save();
|
return team.save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user