diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionHandler.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionHandler.coffee index cdb07755f4..7fa43f4270 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionHandler.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionHandler.coffee @@ -70,6 +70,8 @@ module.exports = return callback(error) if error? User.findById recurlySubscription.account.account_code, (error, user) -> return callback(error) if error? + if !user? + return callback("no user found") SubscriptionUpdater.syncSubscription recurlySubscription, user?._id, callback