optimize topics.markTopicNotificationsRead

let's not call it once for each tid
This commit is contained in:
barisusakli
2016-09-19 23:43:50 +03:00
parent 877820779c
commit 4ce8e2224a
5 changed files with 25 additions and 22 deletions

View File

@@ -283,7 +283,7 @@ topicsController.get = function(req, res, callback) {
}
if (markedRead) {
topics.pushUnreadCount(req.uid);
topics.markTopicNotificationsRead(tid, req.uid);
topics.markTopicNotificationsRead([tid], req.uid);
}
});
}