From 2120777b0a066158e18f6c074a4f02472839b515 Mon Sep 17 00:00:00 2001 From: Lawin0129 <56766256+Lawin0129@users.noreply.github.com> Date: Sat, 5 Feb 2022 14:29:08 +0000 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 61fdd14..3027bd1 100644 --- a/index.js +++ b/index.js @@ -852,8 +852,8 @@ express.get("/fortnite/api/cloudstorage/user/:accountId", async (req, res) => { const file = path.join(process.env.LOCALAPPDATA, "LawinServer", "ClientSettings", `ClientSettings-${currentBuildID}.Sav`); if (fs.existsSync(file)) { - const ParsedFile = fs.readFileSync(path.join(__dirname, file), 'utf-8'); - const ParsedStats = fs.statSync(path.join(__dirname, file)); + const ParsedFile = fs.readFileSync(file, 'utf-8'); + const ParsedStats = fs.statSync(file); return res.json([{ "uniqueFilename": "ClientSettings.Sav",