mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 00:31:25 +10:00
slight bug fixes and clean up
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user