v2 fix transact
This commit is contained in:
@@ -284,8 +284,9 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
AddRescueSprechwunschToQueue(WunschID) {
|
||||
let self = this
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunsch], async () => {
|
||||
return this.ADisDB.ADisSprechwunsch.put({
|
||||
return self.ADisDB.ADisSprechwunsch.put({
|
||||
vehicleID: WunschID,
|
||||
done: 'false'
|
||||
})
|
||||
@@ -296,8 +297,9 @@ class AutomaticDispose {
|
||||
|
||||
|
||||
UpdateRescueSprechwunschToDone(WunschID) {
|
||||
let self = this
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunsch], async () => {
|
||||
return this.ADisDB.ADisSprechwunsch.put({
|
||||
return self.ADisDB.ADisSprechwunsch.put({
|
||||
vehicleID: WunschID,
|
||||
done: 'true'
|
||||
})
|
||||
@@ -885,8 +887,9 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
AddAvailableMissions(Mission) {
|
||||
let self = this;
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisAvailabelMissions], async () => {
|
||||
return this.ADisDB.ADisAvailabelMissions.put({
|
||||
return self.ADisDB.ADisAvailabelMissions.put({
|
||||
missionID: Mission.id,
|
||||
type: Mission.type,
|
||||
name: Mission.name,
|
||||
|
||||
Reference in New Issue
Block a user