chore: format files

This commit is contained in:
C4illin 2025-08-07 23:28:02 +02:00 committed by Emrik Östling
parent 858ee28ef2
commit 81f109f830
15 changed files with 77 additions and 63 deletions

View file

@ -46,6 +46,11 @@ export const convert = new Elysia().use(userService).post(
const convertTo = normalizeFiletype(body.convert_to.split(",")[0] ?? "");
const converterName = body.convert_to.split(",")[1];
if (!converterName) {
return redirect(`${WEBROOT}/`, 302);
}
const fileNames = JSON.parse(body.file_names) as string[];
for (let i = 0; i < fileNames.length; i++) {