File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/ipfs/api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public List<Multihash> local() throws IOException {
109
109
*/
110
110
public class Pin {
111
111
public List <Multihash > add (Multihash hash ) throws IOException {
112
- return ((List <Object >)((Map )retrieveAndParse ("pin/add?stream-channels=true&arg=" + hash )).get ("Pinned " ))
112
+ return ((List <Object >)((Map )retrieveAndParse ("pin/add?stream-channels=true&arg=" + hash )).get ("Pins " ))
113
113
.stream ()
114
114
.map (x -> Multihash .fromBase58 ((String )x ))
115
115
.collect (Collectors .toList ());
@@ -131,7 +131,7 @@ public List<Multihash> rm(Multihash hash) throws IOException {
131
131
132
132
public List <Multihash > rm (Multihash hash , boolean recursive ) throws IOException {
133
133
Map json = retrieveMap ("pin/rm?stream-channels=true&r=" + recursive + "&arg=" + hash );
134
- return ((List <Object >) json .get ("Pinned " )).stream ().map (x -> Multihash .fromBase58 ((String ) x )).collect (Collectors .toList ());
134
+ return ((List <Object >) json .get ("Pins " )).stream ().map (x -> Multihash .fromBase58 ((String ) x )).collect (Collectors .toList ());
135
135
}
136
136
}
137
137
You can’t perform that action at this time.
0 commit comments