style: fix prettier formatting

This commit is contained in:
Your Name 2026-01-22 00:51:37 +08:00
parent 912546aaa7
commit 2169aa90e9
4 changed files with 9 additions and 15 deletions

View file

@ -25,14 +25,14 @@ export const download = new Elysia()
const fileName = sanitize(decodeURIComponent(params.fileName));
const filePath = `${outputDir}${userId}/${jobId}/${fileName}`;
// 檢查檔案是否存在
if (!existsSync(filePath)) {
console.error(`[Download] File not found: ${filePath}`);
set.status = 404;
return { error: "File not found", path: filePath };
}
return Bun.file(filePath);
},
{