mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-03-03 02:17:01 +00:00
chore: fix format
This commit is contained in:
@@ -25,11 +25,11 @@ export const upload = new Elysia().use(userService).post(
|
||||
if (body?.file) {
|
||||
if (Array.isArray(body.file)) {
|
||||
for (const file of body.file) {
|
||||
const santizedFileName = sanitize(file.name)
|
||||
const santizedFileName = sanitize(file.name);
|
||||
await Bun.write(`${userUploadsDir}${santizedFileName}`, file);
|
||||
}
|
||||
} else {
|
||||
const santizedFileName = sanitize(body.file["name"])
|
||||
const santizedFileName = sanitize(body.file["name"]);
|
||||
await Bun.write(`${userUploadsDir}${santizedFileName}`, body.file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user