无人回复的话题不显示dev区

This commit is contained in:
alsotang 2017-06-07 17:14:53 +08:00
parent c813ec5a79
commit b65c32295e

View File

@ -94,7 +94,7 @@ exports.index = function (req, res, next) {
ep.emit('no_reply_topics', no_reply_topics);
} else {
Topic.getTopicsByQuery(
{ reply_count: 0, tab: {$ne: 'job'}},
{ reply_count: 0, tab: {$nin: ['job', 'dev']}},
{ limit: 5, sort: '-create_at'},
ep.done('no_reply_topics', function (no_reply_topics) {
cache.set('no_reply_topics', no_reply_topics, 60 * 1);