Updated migration to not update canceled group plans (#8550)
This commit is contained in:
committed by
Sabe Jones
parent
38b894db56
commit
8b65ce3053
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user