Removed if includes version

This commit is contained in:
Ponkhy 2021-09-16 20:18:31 +02:00
parent 8b463e70df
commit 4bdada36a9
1 changed files with 3 additions and 2 deletions

View File

@ -933,6 +933,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
checkLogin(socket)
let backupData = JSON.parse(uploadedJSON);
let version = backupData.version.replace(/\./g, "");
console.log(`Importing Backup, User ID: ${socket.userID}, Version: ${backupData.version}`)
@ -976,7 +977,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
let retryInterval = 0;
if (backupData.version.includes("1.7")) {
if (version >= 170) {
retryInterval = monitorListData[i].retryInterval;
}
@ -1011,7 +1012,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
bean.user_id = socket.userID
await R.store(bean)
if (backupData.version.includes("1.7")) {
if (version >= 170) {
if (monitorListData[i].tags.length >= 1) {
for (let o = 0; o < monitorListData[i].tags.length; o++) {