From 7dad0427e80d36235de0e0fce6e040a879f42e9e Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 15 Jun 2016 17:38:02 +0100 Subject: [PATCH] fixed logger in notifications builder --- .../coffee/Features/Notifications/NotificationsBuilder.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee b/services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee index 0364dc7e36..9f960b1d15 100644 --- a/services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee +++ b/services/web/app/coffee/Features/Notifications/NotificationsBuilder.coffee @@ -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 = ->)->