From 4568b746994e14d1c169f7ac31e84a5ff3eea095 Mon Sep 17 00:00:00 2001 From: Antoine WEBER Date: Tue, 22 Sep 2015 14:56:32 +0200 Subject: [PATCH] test et debug --- routes/channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/channel.js b/routes/channel.js index 7d9a1aa..3e55d01 100644 --- a/routes/channel.js +++ b/routes/channel.js @@ -19,7 +19,7 @@ router.get('/:id', function(req, res, next) { //stmt.finalize(); db.get("SELECT id, name, section_type as type" - + " FROM library_sections ORDER BY name ASC", function(err, row) { + + " FROM library_sections WHERE id = ? ORDER BY name ASC",req.params.id, function(err, row) { channel_info = row; });