aboutsummaryrefslogtreecommitdiff
path: root/web/routes
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2019-02-27 05:17:53 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2019-02-27 05:17:53 +0000
commit92625bb842d80faa33188306b918f2078c91e848 (patch)
tree59a5139403aa257ff5b9c408ad53e053043379ff /web/routes
parenta844d93b5dd799b202ef476fa151bea5bd125456 (diff)
removed unnecessary db call breaking homepage due to db update
Diffstat (limited to 'web/routes')
-rw-r--r--web/routes/index.js9
1 files changed, 3 insertions, 6 deletions
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
});
});
});