Fixed error in profiles reset

This commit is contained in:
Davide Passoni
2024-11-27 17:48:34 +01:00
parent b4841872ca
commit 8580c5c62b
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ module.exports = function (configLocation) {
}
});
router.put("/profile/resetall", function (req, res, next) {
router.put("/profile/delete/all", function (req, res, next) {
if (fs.existsSync(configLocation)) {
let rawdata = fs.readFileSync(configLocation, "utf-8");
const config = JSON.parse(rawdata);