getLongCLaimId updated

This commit is contained in:
bill bittner 2017-10-31 16:00:12 -07:00
parent c6878eb0a3
commit cbfce3a01e
3 changed files with 63 additions and 52 deletions

View file

@ -112,7 +112,7 @@ module.exports = {
getAssetByClaim (claimName, claimId) {
logger.debug(`getAssetByClaim(${claimName}, ${claimId})`);
return new Promise((resolve, reject) => {
db.getLongClaimId(claimName, claimId) // 1. get the long claim id
db.Claim.getLongClaimId(claimName, claimId) // 1. get the long claim id
.then(result => { // 2. get the asset using the long claim id
logger.debug('long claim id ===', result);
if (result === NO_CLAIM) {