Skip to content

Commit

Permalink
Use subsocial offchain for ipfs
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Nov 1, 2023
1 parent fd14f4a commit 1ea6233
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export function getIpfsApi() {
return {
ipfs,
saveAndPinJson: async (content: Record<any, any>) => {
// const cid = await ipfs.saveContentToOffchain(content as any)
const cid = await ipfs.saveJson(content)
await ipfs.pinContent(cid, props)
const cid = await ipfs.saveContentToOffchain(content as any)
// const cid = await ipfs.saveJson(content)
// await ipfs.pinContent(cid, props)
return cid?.toString() ?? ''
},
saveAndPinImage: async (file: any) => {
Expand Down

0 comments on commit 1ea6233

Please sign in to comment.