Merge pull request #9798 from overleaf/ta-em-gs-best-subscription-fix

Fix Best Subscription Check

GitOrigin-RevId: a7ea5063d4287a421b96222763a59c15652c8d6f
This commit is contained in:
Timothée Alby
2022-10-17 12:13:07 +02:00
committed by Copybot
parent e699f3ca35
commit 2e70803492
3 changed files with 38 additions and 5 deletions

View File

@@ -478,6 +478,7 @@ const ProjectController = {
}
SubscriptionViewModelBuilder.getBestSubscription(
{ _id: userId },
{ id: userId, ip: req.ip },
(err, subscription) => {
if (err) {
// do not fail loading the project list when fetching the best subscription fails