transactions
This commit is contained in:
28
dist/autoloaderV2.js
vendored
28
dist/autoloaderV2.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Wed Dec 19 2018 16:28:51 GMT+0100 (CET)*/
|
||||
/*Generated on:Wed Dec 19 2018 16:32:45 GMT+0100 (CET)*/
|
||||
/*
|
||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||
* ===============================================
|
||||
@@ -18157,6 +18157,8 @@ class AutomaticDispose {
|
||||
});
|
||||
})
|
||||
}
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
});;
|
||||
}
|
||||
|
||||
@@ -18295,9 +18297,11 @@ class AutomaticDispose {
|
||||
|
||||
UpdateMissionsToDone(MissionID) {
|
||||
const self = this;
|
||||
return self.ADisDB.ADisMissions.update(MissionID, {
|
||||
last_check: Math.floor(new Date().getTime() / 1000),
|
||||
next_check: Math.floor(new Date().getTime() / 1000) + 120
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions], async () => {
|
||||
return self.ADisDB.ADisMissions.update(MissionID, {
|
||||
last_check: Math.floor(new Date().getTime() / 1000),
|
||||
next_check: Math.floor(new Date().getTime() / 1000) + 120
|
||||
})
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
})
|
||||
@@ -18311,6 +18315,8 @@ class AutomaticDispose {
|
||||
}).delete().catch((err) => {
|
||||
console.error(err)
|
||||
})
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -18370,6 +18376,8 @@ class AutomaticDispose {
|
||||
});
|
||||
}
|
||||
return setTimeout(self.OpenNextMission.bind(self), 1000, Runner);
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18410,8 +18418,8 @@ class AutomaticDispose {
|
||||
// return tellParent(`console.log('handler:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed
|
||||
// })
|
||||
// } else {
|
||||
return self.ADisDB.transaction('r', [self.ADisDB.ADisMissions], () => {
|
||||
return self.ADSettings().then((setting) => {
|
||||
return self.ADisDB.transaction('r', [self.ADisDB.ADisMissions], async () => {
|
||||
return self.ADSettings().then( async (setting) => {
|
||||
if (setting[self.MyRunnerSettings] === 'true') {
|
||||
|
||||
let where = {
|
||||
@@ -18444,6 +18452,8 @@ class AutomaticDispose {
|
||||
return tellParent(`console.log('wunsch:2000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`);
|
||||
})
|
||||
}
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
})
|
||||
// }
|
||||
}, 500);
|
||||
@@ -18580,6 +18590,8 @@ class AutomaticDispose {
|
||||
} else {
|
||||
tellParent(`console.log('config:1000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||
}
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
});
|
||||
} else {
|
||||
tellParent(`console.log('config:2000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||
@@ -18611,6 +18623,8 @@ class AutomaticDispose {
|
||||
self.UpdateMissionsToDone(self.MissionID);
|
||||
tellParent(`console.log('config:3000:update:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // update Mission here as updated or full
|
||||
}
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
});;
|
||||
|
||||
}
|
||||
@@ -18680,6 +18694,8 @@ class AutomaticDispose {
|
||||
});
|
||||
}, 250);
|
||||
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user