added subscription handler null check

This commit is contained in:
Henry Oswald 2015-10-19 22:29:11 +01:00
parent d80179ecc6
commit 2b8dd7248a

View file

@ -70,7 +70,7 @@ module.exports =
return callback(error) if error?
User.findById recurlySubscription.account.account_code, (error, user) ->
return callback(error) if error?
SubscriptionUpdater.syncSubscription recurlySubscription, user._id, callback
SubscriptionUpdater.syncSubscription recurlySubscription, user?._id, callback