Skip to content

Commit

Permalink
Merge pull request #3635 from OriginTrail/v8/fix-get-for-kas
Browse files Browse the repository at this point in the history
Fix get for KA
  • Loading branch information
Mihajlo-Pavlovic authored Dec 27, 2024
2 parents d76f875 + eee089b commit 8311163
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,15 @@ class HandleGetRequestCommand extends HandleProtocolMessageCommand {
burned: [],
};
}
} else {
// kaId is number, so transform it to range
knowledgeAssetId = {
startTokenId: knowledgeAssetId,
endTokenId: knowledgeAssetId,
burned: [],
};
}

assertionPromise = this.tripleStoreService
.getAssertion(
blockchain,
Expand Down
8 changes: 8 additions & 0 deletions src/commands/protocols/get/sender/local-get-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,15 @@ class LocalGetCommand extends Command {
burned: [],
};
}
} else {
// kaId is number, so transform it to range
knowledgeAssetId = {
startTokenId: knowledgeAssetId,
endTokenId: knowledgeAssetId,
burned: [],
};
}

assertionPromise = this.tripleStoreService
.getAssertion(
blockchain,
Expand Down

0 comments on commit 8311163

Please sign in to comment.