added logging and default calback

This commit is contained in:
Henry Oswald 2016-06-13 13:38:30 +01:00
parent f3e48e332b
commit 84db5ec23a
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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?