From 709db8e7414245456bb8266006ec05daa2770bd0 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Tue, 11 Jul 2017 18:17:38 -0700 Subject: [PATCH] removed trending from homepage --- routes/home-routes.js | 14 +++----------- views/index.handlebars | 1 - 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/routes/home-routes.js b/routes/home-routes.js index d3632aa0..ffe5ec78 100644 --- a/routes/home-routes.js +++ b/routes/home-routes.js @@ -1,19 +1,11 @@ const logger = require('winston'); -const { postToStats, getTrendingClaims } = require('../controllers/statsController.js'); -const errorHandlers = require('../helpers/libraries/errorHandlers.js'); +const { postToStats } = require('../controllers/statsController.js'); module.exports = app => { // route for the home page app.get('/', ({ headers, ip, originalUrl }, res) => { - const startDate = new Date(); - startDate.setDate(startDate.getDate() - 1); - getTrendingClaims(startDate) - .then(result => { - res.status(200).render('index', { trendingAssets: result }); - }) - .catch(error => { - errorHandlers.handleRequestError(error, res); - }); + // send response + res.status(200).render('index'); }); // a catch-all route if someone visits a page that does not exist app.use('*', ({ originalUrl, ip }, res) => { diff --git a/views/index.handlebars b/views/index.handlebars index 7f74f50b..e3b87ed4 100644 --- a/views/index.handlebars +++ b/views/index.handlebars @@ -3,7 +3,6 @@
{{> publish}} {{> learnMore}} - {{> trending}}
{{> footer}}