v2 up handler myRunner

This commit is contained in:
2018-12-02 09:56:37 +01:00
parent 74a1be28de
commit 7773e51285
3 changed files with 10 additions and 12 deletions

11
dist/autoloaderV2.js vendored
View File

@@ -1,4 +1,4 @@
/*Generated on:Sun Dec 02 2018 09:52:21 GMT+0100 (CET)*/
/*Generated on:Sun Dec 02 2018 09:56:36 GMT+0100 (CET)*/
/*
* Dexie.js - a minimalistic wrapper for IndexedDB
* ===============================================
@@ -18277,7 +18277,7 @@ class AutomaticDispose {
console.log("MissionID", self.MissionID);
console.log("MissionType", self.MissionType);
self.ADSettings().then((setting) => {
if (setting[runnerSettings] != 'true') {
if (setting[self.MyRunnerSettings] != 'true') {
return self.ADisDB.ADisMissionsOwn.where({
missionID: self.MissionID,
runner: MyRunner,
@@ -18390,19 +18390,18 @@ class AutomaticDispose {
CheckMissionAutomatic() {
const self = this;
var setOpt;
var missionLoad;
if (window.name == 'adis-ownmissions') {
setOpt = 'MissionsOwn-Automatic';
} else if (window.name == 'adis-krankentransporte') {
setOpt = 'Krankentransport-Automatic';
}
if (setOpt && missionLoad) {
if (setOpt && self.MyRunner) {
self.ADSettings().then((setting) => {
if (setting[setOpt] == 'true') {
var coll = self.ADisDB.ADisMissions.where({
done: 'false'
})
if (missionLoad != "ADisKrankentransport") {
if (self.MyRunner != "kt") {
coll = coll.and(function (item) {
return item.next_check <= Math.floor(new Date().getTime() / 1000)
});
@@ -18412,7 +18411,7 @@ class AutomaticDispose {
}).then((Missions) => {
if (Missions.length > 0) {
var Mission = Missions[0];
self.GetMissionConfiguration(missionLoad == 'ADisKrankentransport' ? 147 : Mission.type);
self.GetMissionConfiguration(self.MyRunner == 'kt' ? 147 : Mission.type);
}
});
}