getLongCLaimId updated
This commit is contained in:
parent
c6878eb0a3
commit
cbfce3a01e
3 changed files with 63 additions and 52 deletions
controllers
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue