Skip to content

Commit

Permalink
removing already uploaded cids when replicate
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Apr 10, 2024
1 parent bc29103 commit ca0e011
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/protocols/chain-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,12 @@ export const manifestNewBatch = async (
.catch((err) => {
console.log(err);
});
if (!manifestInfo || manifestInfo == '' || manifestInfo == null) {
if (
!manifestInfo ||
manifestInfo.isEmpty ||
manifestInfo.toString() === '' ||
manifestInfo == null
) {
newCids.push(cid);
} else {
let formattedManifestInfo: BType.ManifestResponse = JSON.parse(
Expand Down

0 comments on commit ca0e011

Please sign in to comment.