added migration to add channelName to Claim table

This commit is contained in:
bill bittner 2017-10-25 15:37:11 -07:00
parent 12798051a9
commit 8f4c4ff44e
4 changed files with 12 additions and 113 deletions

View file

@ -221,9 +221,11 @@ module.exports = {
return db.resolveClaim(fileInfo.name, fileInfo.claimId);
})
.then(resolveResult => {
logger.debug('resolve result >>', resolveResult);
fileInfo['thumbnail'] = chooseThumbnail(resolveResult, DEFAULT_THUMBNAIL);
fileInfo['title'] = resolveResult.title;
fileInfo['description'] = resolveResult.description;
if (resolveResult.certificateId) { fileInfo['certificateId'] = resolveResult.certificateId };
showFile(fileInfo, res);
return fileInfo;
})