Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 0f720d1

Browse files
committed
fix: repo.gc() cid handling
1 parent c755dde commit 0f720d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repo/gc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const CID = require('cids')
77
const transform = function (res, callback) {
88
callback(null, res.map(r => ({
99
err: r.Err ? new Error(r.Err) : null,
10-
cid: r.Key ? new CID(r.Key) : null
10+
cid: (r.Key || {})['/'] ? new CID(r.Key['/']) : null
1111
})))
1212
}
1313

0 commit comments

Comments
 (0)