fixed license and description on channel page

This commit is contained in:
bill bittner 2017-08-23 22:35:37 -07:00
parent 35719e526a
commit cb4a116d8e

View file

@ -224,7 +224,7 @@ module.exports = {
getAllChannelClaims (channelId) { getAllChannelClaims (channelId) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
logger.debug(`finding all claims in channel "${channelId}"`); logger.debug(`finding all claims in channel "${channelId}"`);
db.sequelize.query(`SELECT name, claimId, outpoint, height, address, contentType FROM Claim WHERE certificateId = '${channelId}' ORDeR BY height DESC;`, { type: db.sequelize.QueryTypes.SELECT }) 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 })
.then(result => { .then(result => {
switch (result.length) { switch (result.length) {
case 0: case 0: