From 2c12b7480bd13dbff9b304fa03ca2e2a1f3cfab0 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Tue, 28 Jan 2025 20:35:29 -0600 Subject: [PATCH] idk --- api/queries/functions/images.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/queries/functions/images.ts b/api/queries/functions/images.ts index 158e7a2b..6d7b0255 100644 --- a/api/queries/functions/images.ts +++ b/api/queries/functions/images.ts @@ -15,7 +15,7 @@ export function fetchItemImage(itemId: string, imageType?: ImageType | undefined const existingImage = await FileSystem.exists(getImageFilePath(itemId, width, height, imageType)) if (existingImage) - resolve(await FileSystem.readFile(getImageFilePath(itemId, width, height, imageType), 'base64')); + resolve(await FileSystem.readFile(getImageFilePath(itemId, width, height, imageType))); else FileSystem.fetch(getImageApi(Client.api!) .getItemImageUrlById( @@ -36,7 +36,7 @@ export function fetchItemImage(itemId: string, imageType?: ImageType | undefined console.debug(result); if (result.ok) - resolve(await FileSystem.readFile(getImageFilePath(itemId, width, height, imageType), 'base64')); + resolve(await FileSystem.readFile(getImageFilePath(itemId, width, height, imageType))); else reject(result.statusText); }).catch((error) => {