show day/week/month/year popular topics

This commit is contained in:
barisusakli
2014-07-11 18:43:22 -04:00
parent 13f94ee32a
commit 0362c1a3b0
7 changed files with 58 additions and 33 deletions

View File

@@ -20,7 +20,8 @@ module.exports = function(Topics) {
var terms = {
day: 86400000,
week: 604800000,
month: 2592000000
month: 2592000000,
year: 31104000000
};
var since = terms.day;