Skip to content

Commit ca0e011

Browse files
committed
removing already uploaded cids when replicate
1 parent bc29103 commit ca0e011

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/protocols/chain-api.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,12 @@ export const manifestNewBatch = async (
333333
.catch((err) => {
334334
console.log(err);
335335
});
336-
if (!manifestInfo || manifestInfo == '' || manifestInfo == null) {
336+
if (
337+
!manifestInfo ||
338+
manifestInfo.isEmpty ||
339+
manifestInfo.toString() === '' ||
340+
manifestInfo == null
341+
) {
337342
newCids.push(cid);
338343
} else {
339344
let formattedManifestInfo: BType.ManifestResponse = JSON.parse(

0 commit comments

Comments
 (0)