aboutsummaryrefslogtreecommitdiff
path: root/web/routes/index.js
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-28 23:54:51 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-28 23:54:51 +0000
commit834843e6179c94e25157f50d94c3ed3b41802b0b (patch)
tree93d6dbff0cd914fc157077aebefa339cbd59f748 /web/routes/index.js
parent54b1457a6e641650263b04db15d6d1341a7a1a37 (diff)
bug with liveupdates adding duplicate pointsfeat/34
Diffstat (limited to 'web/routes/index.js')
-rw-r--r--web/routes/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/routes/index.js b/web/routes/index.js
index 2633c04..2a828bc 100644
--- a/web/routes/index.js
+++ b/web/routes/index.js
@@ -47,7 +47,7 @@ router.post('/mobilerequest', function(req, res) {
} else {
// send event to all connections
for(var i = 0; i < connections.length; i++) {
- connections[i].sseSend(point);
+ connections[i].sseSend(result);
}
console.log(result);
res.status(201).send({'status': 'success'});