style: fix prettier formatting
This commit is contained in:
parent
912546aaa7
commit
2169aa90e9
4 changed files with 9 additions and 15 deletions
|
|
@ -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);
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue