diff --git a/services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee b/services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee index 314142b3af..0364dc7e36 100644 --- a/services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee +++ b/services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee @@ -5,7 +5,7 @@ module.exports = groupPlan: (user, licence)-> key : "join-sub-#{licence.subscription_id}" - + logger.log user_id:user_id, key:key, "creating notification key for user" create: (callback = ->)-> messageOpts = groupName: licence.name diff --git a/services/web/app/coffee/Features/User/UserHandler.coffee b/services/web/app/coffee/Features/User/UserHandler.coffee index 8af78573d6..602858eac3 100644 --- a/services/web/app/coffee/Features/User/UserHandler.coffee +++ b/services/web/app/coffee/Features/User/UserHandler.coffee @@ -6,7 +6,7 @@ logger = require("logger-sharelatex") module.exports = UserHandler = - populateGroupLicenceInvite: (user, callback)-> + populateGroupLicenceInvite: (user, callback = ->)-> logger.log user_id:user._id, "populating any potential group licence invites" licence = SubscriptionDomainHandler.getLicenceUserCanJoin user if !licence?