Skip to content

Commit

Permalink
fix(passport): debug avatar upload logs (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasein108 authored Dec 13, 2023
1 parent a554904 commit 80d137a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/ipfs/utils/utils-ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ const addContenToIpfs = async (
if (node) {
cid = await node.add(content);
}
const pinResponse = await cyberCluster.add(content);

cid = cid ?? pinResponse?.cid;
// TODO: TMP solution make cluster call non-awaitable
cyberCluster.add(content);
// const pinResponse = await cyberCluster.add(content);
// cid = cid || pinResponse?.cid;

cid && (await ipfsCacheDb.add(cid, await contentToUint8Array(content)));

return cid;
};

Expand Down

0 comments on commit 80d137a

Please sign in to comment.