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

@ -224,7 +224,7 @@ export class OlympusApp {
body: "", // Send the data in JSON format
};
fetch(this.getExpressAddress() + `/resources/profile/resetall`, requestOptions)
fetch(this.getExpressAddress() + `/resources/profile/delete/all`, requestOptions)
.then((response) => {
if (response.status === 200) {
console.log(`All profiles reset correctly`);

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);