diff --git a/migrations/groups/update-groups-with-group-plans.js b/migrations/groups/update-groups-with-group-plans.js index 0c3d196e9f..ba9aa8e48d 100644 --- a/migrations/groups/update-groups-with-group-plans.js +++ b/migrations/groups/update-groups-with-group-plans.js @@ -14,7 +14,8 @@ import * as payments from '../../website/server/libs/payments'; async function updateGroupsWithGroupPlans () { let groups = await Group.find({ - 'purchased.plan.customerId': 'group-unlimited', + 'purchased.plan.planId': 'group_monthly', + 'purchased.plan.dateTerminated': null, }).exec(); let promises = [];