v2 transactions
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Wed Dec 19 2018 16:49:46 GMT+0100 (CET)*/
|
||||
/*Generated on:Wed Dec 19 2018 17:03:17 GMT+0100 (CET)*/
|
||||
var AutomaticDispose_Branch = "master";
|
||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||
var da_lss_adis_time = new Date().getTime();
|
||||
|
||||
Vendored
+13
-3
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Wed Dec 19 2018 16:49:46 GMT+0100 (CET)*/
|
||||
/*Generated on:Wed Dec 19 2018 17:03:17 GMT+0100 (CET)*/
|
||||
/*
|
||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||
* ===============================================
|
||||
@@ -17432,6 +17432,7 @@ class AutomaticDispose {
|
||||
|
||||
OpenNextPoliceSprechwunsch() {
|
||||
let self = this;
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||
this.ADSettings().then((setting) => {
|
||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||
return self.ADisDB.ADisSprechwunschPolice.where({
|
||||
@@ -17457,20 +17458,27 @@ class AutomaticDispose {
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
}).catch((err) => {})
|
||||
}
|
||||
|
||||
AddPoliceSprechwunschToQueue(WunschID) {
|
||||
let self = this;
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||
return this.ADisDB.ADisSprechwunschPolice.put({
|
||||
missionID: WunschID,
|
||||
done: 'false'
|
||||
})
|
||||
}).catch((err) => {})
|
||||
}
|
||||
|
||||
UpdatePoliceSprechwunschToDone(WunschID) {
|
||||
return this.ADisDB.ADisSprechwunschPolice.add({
|
||||
let self = this;
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||
return self.ADisDB.ADisSprechwunschPolice.add({
|
||||
missionID: WunschID,
|
||||
done: 'true'
|
||||
})
|
||||
}).catch((err) => {})
|
||||
}
|
||||
|
||||
@@ -18080,11 +18088,13 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
AddAvailableMissions(Mission) {
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisAvailabelMissions], async () => {
|
||||
return this.ADisDB.ADisAvailabelMissions.put({
|
||||
missionID: Mission.id,
|
||||
type: Mission.type,
|
||||
name: Mission.name,
|
||||
jsondata: Mission
|
||||
})
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
})
|
||||
|
||||
+12
-2
@@ -425,6 +425,7 @@ class AutomaticDispose {
|
||||
|
||||
OpenNextPoliceSprechwunsch() {
|
||||
let self = this;
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||
this.ADSettings().then((setting) => {
|
||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||
return self.ADisDB.ADisSprechwunschPolice.where({
|
||||
@@ -450,20 +451,27 @@ class AutomaticDispose {
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
})
|
||||
}).catch((err) => {})
|
||||
}
|
||||
|
||||
AddPoliceSprechwunschToQueue(WunschID) {
|
||||
let self = this;
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||
return this.ADisDB.ADisSprechwunschPolice.put({
|
||||
missionID: WunschID,
|
||||
done: 'false'
|
||||
})
|
||||
}).catch((err) => {})
|
||||
}
|
||||
|
||||
UpdatePoliceSprechwunschToDone(WunschID) {
|
||||
return this.ADisDB.ADisSprechwunschPolice.add({
|
||||
let self = this;
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||
return self.ADisDB.ADisSprechwunschPolice.add({
|
||||
missionID: WunschID,
|
||||
done: 'true'
|
||||
})
|
||||
}).catch((err) => {})
|
||||
}
|
||||
|
||||
@@ -839,11 +847,13 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
AddAvailableMissions(Mission) {
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisAvailabelMissions], async () => {
|
||||
return this.ADisDB.ADisAvailabelMissions.put({
|
||||
missionID: Mission.id,
|
||||
type: Mission.type,
|
||||
name: Mission.name,
|
||||
jsondata: Mission
|
||||
})
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user