WIP show.js

This commit is contained in:
WEBER Antoine 2015-09-24 01:15:15 +02:00
parent 3762a7ae45
commit d079598992

View File

@ -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);