사소한 리팩토링 3

This commit is contained in:
static committed 2025-12-26 15:57:05 +09:00
1 parent c9d4b10356
commit 3eb7411438
8 files changed
+4 -19

No files matched your search

+1 -2
View File
@@ -1,4 +1,3 @@
import { callGetApi } from "$lib/hooks";
import { getAllFileInfos } from "$lib/indexedDB/filesystem";
import { decryptData } from "$lib/modules/crypto";
import {
@@ -58,7 +57,7 @@ export const requestFileThumbnailDownload = async (fileId: number, dataKey?: Cry
}
const { contentIv: thumbnailEncryptedIv } = thumbnailInfo;
const res = await callGetApi(`/api/file/${fileId}/thumbnail/download`);
const res = await fetch(`/api/file/${fileId}/thumbnail/download`);
if (!res.ok) return null;
const thumbnailEncrypted = await res.arrayBuffer();