From 4a15413b30d4d766f2eb97e820475e051588a130 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Thu, 21 May 2015 17:18:22 +0200 Subject: [PATCH] Corrected bug --- controllers/prototype/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/prototype/index.js b/controllers/prototype/index.js index f26549e..a01449a 100644 --- a/controllers/prototype/index.js +++ b/controllers/prototype/index.js @@ -140,8 +140,8 @@ var addPreviousNextFromId = function(client, req, res, callback, id) { "((camera).target).y AS ty, " + "((camera).target).z AS tz, " + "time AS time " + - "FROM previousnextclicked;", - [], + "FROM previousnextclicked WHERE user_id = $1;", + [id], function(err, result) { res.locals.path = res.locals.path || []; for (var i in result.rows) {