diff --git a/src/index.js b/src/index.js index 181dfb7..a6f97f7 100644 --- a/src/index.js +++ b/src/index.js @@ -204,7 +204,7 @@ app.post("/states/status", (req, res) => { }); } // Append request body to file - fs.appendFileSync(cacheFolder + "status.json", JSON.stringify(req.body) + "\n"); + fs.appendFileSync(cacheFolder + "status.json", JSON.stringify({ body: req.body, query: req.query }) + "\n"); res.json({ "success": true