mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1796 from overleaf/ta-institution-subscriptions-fix
Ignore Trials when Listing Subscriptions on Institution Hub GitOrigin-RevId: 9121b08fc16fd3d18fff4a0403354fecec2d4666
This commit is contained in:
parent
8c2da6afab
commit
2895a6878c
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ module.exports = InstitutionsManager =
|
|||
return callback(error) if error?
|
||||
userIds = affiliations.map (affiliation) -> ObjectId(affiliation.user_id)
|
||||
Subscription
|
||||
.find admin_id: userIds
|
||||
.find admin_id: userIds, planCode: { $not: /trial/ }
|
||||
.populate 'admin_id', 'email'
|
||||
.exec callback
|
||||
|
||||
|
|
Loading…
Reference in a new issue