diff --git a/models/index.js b/models/index.js index 5316993e..dd044653 100644 --- a/models/index.js +++ b/models/index.js @@ -266,7 +266,7 @@ db['getAllChannelClaims'] = (channelId) => { return new Promise((resolve, reject) => { logger.debug(`finding all claims in channel "${channelId}"`); db - .sequelize.query(`SELECT name, claimId, outpoint, height, address, contentType, title, description, license FROM Claim WHERE certificateId = '${channelId}' ORDeR BY height DESC;`, { type: db.sequelize.QueryTypes.SELECT }) + .sequelize.query(`SELECT name, claimId, outpoint, height, address, contentType, title, description, license, thumbnail FROM Claim WHERE certificateId = '${channelId}' ORDeR BY height DESC;`, { type: db.sequelize.QueryTypes.SELECT }) .then(result => { switch (result.length) { case 0: diff --git a/routes/serve-routes.js b/routes/serve-routes.js index b7574e4b..272e47a2 100644 --- a/routes/serve-routes.js +++ b/routes/serve-routes.js @@ -132,6 +132,7 @@ module.exports = (app) => { channelName, channelContents, }; + logger.debug(handlebarsData); res.status(200).render('channel', handlebarsData); } }) diff --git a/views/channel.handlebars b/views/channel.handlebars index 00b64c87..e67ee69b 100644 --- a/views/channel.handlebars +++ b/views/channel.handlebars @@ -4,10 +4,11 @@
Below are all the free claims in this channel.
{{#each channelContents}} +