Merge pull request #9476 from overleaf/ta-jpa-best-subscription-logging

Log usersBestSubscription Errors

GitOrigin-RevId: 8f626fb7ecef19fb6b6d79238643504b047b20ef
This commit is contained in:
Timothée Alby 2022-09-13 09:56:02 +02:00 committed by Copybot
parent e177a33eb2
commit 9f09c335cc

View file

@ -451,6 +451,10 @@ const ProjectController = {
(err, subscription) => {
if (err) {
// do not fail loading the project list when fetching the best subscription fails
logger.error(
{ userId, err },
'Could not get usersBestSubscription'
)
return cb(null, { type: 'error' })
}
cb(null, subscription)