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_Branch = "master";
|
||||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||||
var da_lss_adis_time = new Date().getTime();
|
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
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -17432,6 +17432,7 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
OpenNextPoliceSprechwunsch() {
|
OpenNextPoliceSprechwunsch() {
|
||||||
let self = this;
|
let self = this;
|
||||||
|
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||||
this.ADSettings().then((setting) => {
|
this.ADSettings().then((setting) => {
|
||||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||||
return self.ADisDB.ADisSprechwunschPolice.where({
|
return self.ADisDB.ADisSprechwunschPolice.where({
|
||||||
@@ -17457,20 +17458,27 @@ class AutomaticDispose {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
}).catch((err) => {})
|
||||||
}
|
}
|
||||||
|
|
||||||
AddPoliceSprechwunschToQueue(WunschID) {
|
AddPoliceSprechwunschToQueue(WunschID) {
|
||||||
|
let self = this;
|
||||||
|
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||||
return this.ADisDB.ADisSprechwunschPolice.put({
|
return this.ADisDB.ADisSprechwunschPolice.put({
|
||||||
missionID: WunschID,
|
missionID: WunschID,
|
||||||
done: 'false'
|
done: 'false'
|
||||||
|
})
|
||||||
}).catch((err) => {})
|
}).catch((err) => {})
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdatePoliceSprechwunschToDone(WunschID) {
|
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,
|
missionID: WunschID,
|
||||||
done: 'true'
|
done: 'true'
|
||||||
|
})
|
||||||
}).catch((err) => {})
|
}).catch((err) => {})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -18080,11 +18088,13 @@ class AutomaticDispose {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AddAvailableMissions(Mission) {
|
AddAvailableMissions(Mission) {
|
||||||
|
return self.ADisDB.transaction('rw', [self.ADisDB.ADisAvailabelMissions], async () => {
|
||||||
return this.ADisDB.ADisAvailabelMissions.put({
|
return this.ADisDB.ADisAvailabelMissions.put({
|
||||||
missionID: Mission.id,
|
missionID: Mission.id,
|
||||||
type: Mission.type,
|
type: Mission.type,
|
||||||
name: Mission.name,
|
name: Mission.name,
|
||||||
jsondata: Mission
|
jsondata: Mission
|
||||||
|
})
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
})
|
})
|
||||||
|
|||||||
+12
-2
@@ -425,6 +425,7 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
OpenNextPoliceSprechwunsch() {
|
OpenNextPoliceSprechwunsch() {
|
||||||
let self = this;
|
let self = this;
|
||||||
|
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||||
this.ADSettings().then((setting) => {
|
this.ADSettings().then((setting) => {
|
||||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||||
return self.ADisDB.ADisSprechwunschPolice.where({
|
return self.ADisDB.ADisSprechwunschPolice.where({
|
||||||
@@ -450,20 +451,27 @@ class AutomaticDispose {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
}).catch((err) => {})
|
||||||
}
|
}
|
||||||
|
|
||||||
AddPoliceSprechwunschToQueue(WunschID) {
|
AddPoliceSprechwunschToQueue(WunschID) {
|
||||||
|
let self = this;
|
||||||
|
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||||
return this.ADisDB.ADisSprechwunschPolice.put({
|
return this.ADisDB.ADisSprechwunschPolice.put({
|
||||||
missionID: WunschID,
|
missionID: WunschID,
|
||||||
done: 'false'
|
done: 'false'
|
||||||
|
})
|
||||||
}).catch((err) => {})
|
}).catch((err) => {})
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdatePoliceSprechwunschToDone(WunschID) {
|
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,
|
missionID: WunschID,
|
||||||
done: 'true'
|
done: 'true'
|
||||||
|
})
|
||||||
}).catch((err) => {})
|
}).catch((err) => {})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -839,11 +847,13 @@ class AutomaticDispose {
|
|||||||
}
|
}
|
||||||
|
|
||||||
AddAvailableMissions(Mission) {
|
AddAvailableMissions(Mission) {
|
||||||
|
return self.ADisDB.transaction('rw', [self.ADisDB.ADisAvailabelMissions], async () => {
|
||||||
return this.ADisDB.ADisAvailabelMissions.put({
|
return this.ADisDB.ADisAvailabelMissions.put({
|
||||||
missionID: Mission.id,
|
missionID: Mission.id,
|
||||||
type: Mission.type,
|
type: Mission.type,
|
||||||
name: Mission.name,
|
name: Mission.name,
|
||||||
jsondata: Mission
|
jsondata: Mission
|
||||||
|
})
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user