mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fixed logger in notifications builder
This commit is contained in:
parent
e891a47a9e
commit
7dad0427e8
1 changed files with 2 additions and 2 deletions
|
@ -1,15 +1,15 @@
|
|||
|
||||
logger = require("logger-sharelatex")
|
||||
NotificationsHandler = require("./NotificationsHandler")
|
||||
|
||||
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
|
||||
subscription_id: licence.subscription_id
|
||||
logger.log user_id:user._id, key:key, "creating notification key for user"
|
||||
NotificationsHandler.createNotification user._id, @key, "notification_group_invite", messageOpts, callback
|
||||
|
||||
read: (callback = ->)->
|
||||
|
|
Loading…
Reference in a new issue