mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Fixed error in profiles reset
This commit is contained in:
parent
b4841872ca
commit
8580c5c62b
@ -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`);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user