Skip to content

Commit 15938ac

Browse files
author
Vikas Agarwal
committed
patching runtime error
1 parent 3bda4df commit 15938ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/connectNotificationServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ const handler = (topic, message, logger, callback) => {
288288
// filter out `notifications.connect.project.topic.created` events send by bot
289289
// because they create too much clutter and duplicate info
290290
const botIds = [config.TCWEBSERVICE_ID, config.CODERBOT_USER_ID];
291-
if (topic === BUS_API_EVENT.CONNECT.TOPIC.CREATED && botIds.contains(message.userId.toString())) {
291+
if (topic === BUS_API_EVENT.CONNECT.TOPIC.CREATED && botIds.indexOf(message.userId.toString()) !== -1) {
292292
logger.info(`Ignoring, to avoid noise, Bot topic ${topic}`);
293293
return callback(null, []);
294294
}

0 commit comments

Comments
 (0)