slight bug fixes and clean up

This commit is contained in:
DecDuck
2024-10-24 22:12:01 +11:00
parent ef13b68592
commit 24a0d118f2
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export default defineEventHandler(async (h3) => {
});
const gameFile = path.join(versionDir, filename);
if (!fs.existsSync(versionDir))
if (!fs.existsSync(gameFile))
throw createError({ statusCode: 400, statusMessage: "Invalid game file" });
const gameFileStats = fs.statSync(gameFile);