fix: need to pass CID object
This commit is contained in:
parent
2719505d08
commit
003d42ac09
|
@ -205,7 +205,7 @@ async function handleStat(aq: ActiveQuery) {
|
|||
}
|
||||
|
||||
try {
|
||||
const ret = await node.getMetadataByCID(aq.callerInput.cid);
|
||||
const ret = await node.getMetadataByCID(CID.decode(aq.callerInput.cid));
|
||||
aq.respond(ret.toJson());
|
||||
} catch (e) {
|
||||
aq.reject(e);
|
||||
|
|
Loading…
Reference in New Issue