Updated migration to not update canceled group plans (#8550)

This commit is contained in:
Keith Holliday 2017-03-09 16:50:42 -07:00 committed by Sabe Jones
parent 38b894db56
commit 8b65ce3053

View file

@ -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 = [];