fix: need to pass CID object

This commit is contained in:
Derrick Hammer 2023-11-18 09:21:01 -05:00
parent 2719505d08
commit 003d42ac09
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ async function handleStat(aq: ActiveQuery) {
} }
try { try {
const ret = await node.getMetadataByCID(aq.callerInput.cid); const ret = await node.getMetadataByCID(CID.decode(aq.callerInput.cid));
aq.respond(ret.toJson()); aq.respond(ret.toJson());
} catch (e) { } catch (e) {
aq.reject(e); aq.reject(e);