Remove incorrect trial filter

GitOrigin-RevId: b99d1560eb8aa2df259b1e892c3a8218e5c4ba5e
This commit is contained in:
John Lees-Miller 2023-02-07 10:57:02 +00:00 committed by Copybot
parent a928fd20e6
commit f4a9b7bf60

View file

@ -244,10 +244,7 @@ const InstitutionsManager = {
const userIds = affiliations.map(affiliation =>
ObjectId(affiliation.user_id)
)
Subscription.find({
admin_id: userIds,
planCode: { $not: /trial/ },
})
Subscription.find({ admin_id: userIds })
.populate('admin_id', 'email')
.exec(callback)
})