Skip to content

Commit 0bfa59d

Browse files
author
Vikas Agarwal
committed
Debugging statements
Template fix
1 parent 66329d4 commit 0bfa59d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

connect/connectNotificationServer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ notificationServer.setConfig({ LOG_LEVEL: 'debug' });
275275
// logger object used to log in parent thread
276276
// the callback is function(error, userIds), where userIds is an array of user ids to receive notifications
277277
const handler = (topic, message, logger, callback) => {
278+
logger.trace(topic, 'topic');
279+
logger.trace(message, 'message');
278280
const projectId = message.projectId;
279281
if (!projectId) {
280282
return callback(new Error('Missing projectId in the event message.'));
@@ -324,12 +326,14 @@ const handler = (topic, message, logger, callback) => {
324326
// if message has userId such messages will likely need userHandle and user full name
325327
// so let's get it
326328
const ids = [message.initiatorUserId];
329+
logger.trace(message.userId, 'message.userId');
327330
if (message.userId) {
328331
ids.push(message.userId);
329-
return service.getUsersById(ids);
330332
}
331-
return [];
333+
return service.getUsersById(ids);
334+
// return [];
332335
}).then((users) => {
336+
logger.debug(users, 'users');
333337
_.map(allNotifications, (notification) => {
334338
notification.version = eventConfig.version;
335339
notification.contents.projectName = project.name;

emails/src/partials/invites.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<table class="main-child">
3131
<tr>
3232
<td class="empty-child-one"></td>
33-
<td>You are invited to join the <strong>{{projectName}}</strong> on Topcoder Connect. To join the project, please register for a Topcoder account using <strong>Register</strong> button below.</td>
33+
<td>You have been invited to a project by {{initiator.firstName}} {{initiator.lastName}}. To join, please register with Topcoder.</td>
3434
</tr>
3535
</table>
3636
</td>

0 commit comments

Comments
 (0)