From d4b6760a09d368da283f5d116c471a49ed988c54 Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Tue, 25 Jun 2024 11:45:02 +0700 Subject: [PATCH 1/2] chore: add w3s gateway --- services/image/src/utils/ipfs.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/services/image/src/utils/ipfs.ts b/services/image/src/utils/ipfs.ts index 4b66f71..8d2dff5 100644 --- a/services/image/src/utils/ipfs.ts +++ b/services/image/src/utils/ipfs.ts @@ -39,6 +39,7 @@ export async function fetchIPFS({ path }: { path: string }) { const gateways: HTTPS_URI[] = [ ipfsProviders.ipfs, + ipfsProviders.w3s, ipfsProviders.filebase_kodadot, ] From b7a4fe69585449c3496abaf238bc823cffa8e82f Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Tue, 25 Jun 2024 11:46:24 +0700 Subject: [PATCH 2/2] ``` refactor(tests): update snapshot for type-endpoint test ``` --- services/image/src/tests/type-endpoint.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/image/src/tests/type-endpoint.test.ts b/services/image/src/tests/type-endpoint.test.ts index 693e466..7866bf4 100644 --- a/services/image/src/tests/type-endpoint.test.ts +++ b/services/image/src/tests/type-endpoint.test.ts @@ -88,7 +88,7 @@ test('type-endpoint - 200 - image - original', async () => { expect(data).toMatchInlineSnapshot(` Blob { Symbol(kHandle): Blob {}, - Symbol(kLength): 631349, + Symbol(kLength): 86783, Symbol(kType): "image/png", } `)