From 8b65ce3053f4d054e4f67e787f8fa8acbce41697 Mon Sep 17 00:00:00 2001 From: Keith Holliday Date: Thu, 9 Mar 2017 16:50:42 -0700 Subject: [PATCH] Updated migration to not update canceled group plans (#8550) --- migrations/groups/update-groups-with-group-plans.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = [];