From 2947874a751e1e41375b217a1f0751da27c87cdd Mon Sep 17 00:00:00 2001 From: Viki Val Date: Thu, 20 Jun 2024 12:20:31 +0300 Subject: [PATCH] :technologist: use $purifyOne --- services/image/src/utils/ipfs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/image/src/utils/ipfs.ts b/services/image/src/utils/ipfs.ts index 2bc6423..4b66f71 100644 --- a/services/image/src/utils/ipfs.ts +++ b/services/image/src/utils/ipfs.ts @@ -1,5 +1,5 @@ import { - $purify, + $purifyOne, ipfsProviders, type HTTPS_URI, type IPFSProviders, @@ -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 }) {