Skip to content

Commit

Permalink
🧑‍💻 use $purifyOne
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival committed Jun 20, 2024
1 parent 3b8d700 commit 2947874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/image/src/utils/ipfs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
$purify,
$purifyOne,
ipfsProviders,
type HTTPS_URI,
type IPFSProviders,
Expand All @@ -20,7 +20,7 @@ export function ipfsUrl(ipfs?: string) {
}

// TODO: 'kodadot_beta' for beta, 'kodadot' for prod
return $purify(ipfs, ['kodadot_beta'])[0]
return $purifyOne(ipfs, 'kodadot_beta')
}

async function resolveGateway({ path = '', gateway = ipfsProviders.ipfs }) {
Expand Down

0 comments on commit 2947874

Please sign in to comment.