mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
look for unread only for today
This commit is contained in:
@@ -87,7 +87,7 @@ module.exports = function(Topics) {
|
|||||||
async.whilst(function() {
|
async.whilst(function() {
|
||||||
return unreadTids.length < count && !done;
|
return unreadTids.length < count && !done;
|
||||||
}, function(next) {
|
}, function(next) {
|
||||||
Topics.getLatestTids(start, stop, 'month', function(err, tids) {
|
Topics.getLatestTids(start, stop, 'day', function(err, tids) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user