Skip to content

Commit

Permalink
add pin step after adding a file
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRomain committed Jan 12, 2024
1 parent 44a5079 commit 17a4ee5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/src/ipfs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default class IPFSClient {

if (this.ipfs) {
const result = await this.ipfs.add(data);
await this.ipfs.pin(result.path);
return result.path;
}

Expand Down

0 comments on commit 17a4ee5

Please sign in to comment.