From 2b8dd7248a5188d3c53fd356e46b03da6358840d Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 19 Oct 2015 22:29:11 +0100 Subject: [PATCH] added subscription handler null check --- .../app/coffee/Features/Subscription/SubscriptionHandler.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionHandler.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionHandler.coffee index 3d9d473f3e..cdb07755f4 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionHandler.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionHandler.coffee @@ -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