Update index.js

This commit is contained in:
Lawin0129
2022-02-05 14:29:08 +00:00
committed by GitHub
parent 91960f8c0f
commit 2120777b0a

View File

@@ -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`); const file = path.join(process.env.LOCALAPPDATA, "LawinServer", "ClientSettings", `ClientSettings-${currentBuildID}.Sav`);
if (fs.existsSync(file)) { if (fs.existsSync(file)) {
const ParsedFile = fs.readFileSync(path.join(__dirname, file), 'utf-8'); const ParsedFile = fs.readFileSync(file, 'utf-8');
const ParsedStats = fs.statSync(path.join(__dirname, file)); const ParsedStats = fs.statSync(file);
return res.json([{ return res.json([{
"uniqueFilename": "ClientSettings.Sav", "uniqueFilename": "ClientSettings.Sav",