From 9767e8275164e339055f8280f599e470672f3dd4 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 18 Nov 2023 07:28:16 -0500 Subject: [PATCH] fix: use file cid not root cid --- src/backend/providers/s5.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/providers/s5.ts b/src/backend/providers/s5.ts index 66749b9..6a1d22e 100644 --- a/src/backend/providers/s5.ts +++ b/src/backend/providers/s5.ts @@ -64,7 +64,7 @@ export default class S5Provider implements ContentProvider { headers["Content-Type"] = file.contentType as string; return new Response( - new Blob([(await this._client.cat(cid)) as Uint8Array]), + new Blob([(await this._client.cat(file.cid)) as Uint8Array]), { headers, },