From 92625bb842d80faa33188306b918f2078c91e848 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Tue, 26 Feb 2019 22:17:53 -0700 Subject: removed unnecessary db call breaking homepage due to db update --- web/routes/index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'web/routes') diff --git a/web/routes/index.js b/web/routes/index.js index ffe1c21..3aaee01 100644 --- a/web/routes/index.js +++ b/web/routes/index.js @@ -47,13 +47,10 @@ router.get('/', function(req, res, next) { /* GET Map page. */ router.get('/map', function(req,res) { - // we can use the database to fetch a point, SELECT coordinates - Json.findOne({name: "points"}, 'coordinates', function(e,point){ - if (e) return e; - // send the view lat, and long. + // send the view lat, and long. city center res.render('map', { - lat : point.coordinates[1], - lng : point.coordinates[0] + lat : 43.654127, + lng : -79.383370 }); }); }); -- cgit v1.2.3