diff --git a/services/web/app/coffee/Features/Project/ProjectController.coffee b/services/web/app/coffee/Features/Project/ProjectController.coffee index 79c850b04d..75621f05f1 100644 --- a/services/web/app/coffee/Features/Project/ProjectController.coffee +++ b/services/web/app/coffee/Features/Project/ProjectController.coffee @@ -182,7 +182,9 @@ module.exports = ProjectController = if user_id == 'openUser' cb null, defaultSettingsForAnonymousUser(user_id) else - User.findById user_id, cb + User.findById user_id, (err, user)-> + logger.log project_id:project_id, user_id:user_id, "got user" + cb err, user subscription: (cb)-> if user_id == 'openUser' return cb() diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionLocator.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionLocator.coffee index 52dbf6b835..08f5507b7f 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionLocator.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionLocator.coffee @@ -10,7 +10,9 @@ module.exports = else if user_or_id? user_id = user_or_id logger.log user_id:user_id, "getting users subscription" - Subscription.findOne admin_id:user_id, callback + Subscription.findOne admin_id:user_id, (err, subscription)-> + logger.log user_id:user_id, "got users subscription" + callback(err, subscription) getMemberSubscriptions: (user_id, callback) -> logger.log user_id: user_id, "getting users group subscriptions"