Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 5a1d266

Browse files
author
Alan Shaw
authored
fix: repo gc error key name (#2618)
Should be `Error` not `Err`. https://docs.ipfs.io/reference/api/http/#api-v0-repo-gc
1 parent 03396ba commit 5a1d266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/api/resources/repo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exports.gc = {
1717
const filtered = res.filter(r => !r.err || streamErrors)
1818
const response = filtered.map(r => {
1919
return {
20-
Err: r.err && r.err.message,
20+
Error: r.err && r.err.message,
2121
Key: !r.err && { '/': r.cid.toString() }
2222
}
2323
})

0 commit comments

Comments
 (0)