This commit is contained in:
r888888888
2017-11-10 17:44:53 -08:00
parent 546dfda6f3
commit e739dc77d7
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ class PostViewCountService
end
def popular_posts(date = Date.today)
ranking = fetch_rank(date)
ranking = fetch_rank(date) || []
ranking.map {|x| Post.find(x[0])}
end
end