mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 08:02:17 +00:00
Add error-handling to attempt to get user subscription
This commit is contained in:
parent
caa65dddc1
commit
c121653dc4
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ module.exports = SubscriptionController =
|
|||
RecurlyWrapper.getSubscription subscription.recurlySubscription_id,
|
||||
includeAccount: true,
|
||||
(err, usersSubscription)->
|
||||
return next(err) if err?
|
||||
account = usersSubscription.account
|
||||
hostedLoginToken = account.hosted_login_token
|
||||
if !hostedLoginToken
|
||||
|
|
Loading…
Reference in a new issue