Parcourir la source

Add error-handling to attempt to get user subscription

Shane Kilkelly il y a 9 ans
Parent
commit
c121653dc4

+ 1 - 0
services/web/app/coffee/Features/Subscription/SubscriptionController.coffee

@@ -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