Skip to content

Commit

Permalink
refactor(envited.ascs.digital): use file upload
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Scheeren <[email protected]>
  • Loading branch information
royscheeren committed Jan 7, 2025
1 parent 007afc7 commit 04c6540
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/envited.ascs.digital/common/ipfs/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ export const uploadFile =
// },
// })


if (group) {
return pinata.upload
.stream(stream)
.file(new File([arrayBuffer], filename))
.addMetadata({ name: filename })
.group(group)
.then(prop('IpfsHash'))
Expand Down

0 comments on commit 04c6540

Please sign in to comment.