From d079598992d49f3d3c3d8e301a554a9b57d7d011 Mon Sep 17 00:00:00 2001 From: WEBER Antoine Date: Thu, 24 Sep 2015 01:15:15 +0200 Subject: [PATCH] WIP show.js --- routes/show.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/show.js b/routes/show.js index 8b68778..ce2b41b 100644 --- a/routes/show.js +++ b/routes/show.js @@ -32,7 +32,7 @@ router.get('/:id', function(req, res, next) { shows = row; }); - db.each("SELECT episode.id as , episode.title as titre, episode.'index' as episode, season.'index' as saison "+ + db.each("SELECT episode.id as id, episode.title as titre, episode.[index] as episode, season.[index] as saison "+ "FROM metadata_items episode,metadata_items season,metadata_items show "+ "WHERE episode.parent_id=season.id AND season.parent_id = show.id AND show.id = ? ",req.params.id, function(err, row) { console.log(err);