v2 up dua8

This commit is contained in:
2018-12-17 19:52:24 +01:00
parent 94efbc9bad
commit ad2c6bae21
3 changed files with 18 additions and 14 deletions

16
dist/autoloaderV2.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Mon Dec 17 2018 19:42:35 GMT+0100 (CET)*/
/*Generated on:Mon Dec 17 2018 19:52:23 GMT+0100 (CET)*/
/*
* Dexie.js - a minimalistic wrapper for IndexedDB
* ===============================================
@@ -18724,7 +18724,7 @@ class AutomaticDispose {
const runnerIframe = self.ADisSettings.runner_iframes[runnerID];
$('#' + runnerIframe).attr("src", '');
$('#' + runnerIframe).attr("mission_id", 'empty');
setTimeout(self.OpenNextMission.bind(self), 500, Runner);
setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
}
UpdateMissionsToDone(MissionID) {
@@ -18769,17 +18769,17 @@ class AutomaticDispose {
available: 'true',
done: 'false'
})
if (self.MyRunner != "kt") {
//if (self.MyRunner != "kt") {
coll = coll.and(function (item) {
return item.next_check <= Math.floor(new Date().getTime() / 1000)
});
}
//}
return coll.toArray()
}
}).then((Wunsche) => {
if (typeof Wunsche === "undefined") {
return setTimeout(self.OpenNextMission.bind(self), 500, Runner);
return setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
}
Wunsche.sort((a, b) => {
return a.next_check - b.next_check;
@@ -18867,7 +18867,9 @@ class AutomaticDispose {
if (count > 0) {
return Wunsch.each((mywunsch) => {
self.MissionData = mywunsch;
return self.MainHandler()
return self.UpdateMissionsToDone(self.MissionID).then(() => {
return self.MainHandler()
});
});
} else {
//return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
@@ -18885,7 +18887,7 @@ class AutomaticDispose {
})
})
}
}, 1500);
}, 100);
}