v2 transact
This commit is contained in:
@@ -4,7 +4,7 @@ class AutomaticDispose {
|
||||
|
||||
// Variablen
|
||||
get ADisSettings() {
|
||||
let self =this
|
||||
let self = this
|
||||
return {
|
||||
url: "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/",
|
||||
branch: "master",
|
||||
@@ -270,9 +270,11 @@ class AutomaticDispose {
|
||||
|
||||
self.RescueVehicleFrameWatchDog = setTimeout(async function () {
|
||||
let self = this;
|
||||
self.RemoveRescueSprechwunschFromQueue(VehicleID).then((deleteCount) => {
|
||||
$("#adis-sprechwunsch-rescue-frame").attr("src", "");
|
||||
$("#adis-sprechwunsch-rescue-frame").attr("vehicle_id", "empty");
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunsch], async () => {
|
||||
self.RemoveRescueSprechwunschFromQueue(VehicleID).then((deleteCount) => {
|
||||
$("#adis-sprechwunsch-rescue-frame").attr("src", "");
|
||||
$("#adis-sprechwunsch-rescue-frame").attr("vehicle_id", "empty");
|
||||
});
|
||||
});
|
||||
}.bind(self), 1500);
|
||||
}
|
||||
@@ -479,9 +481,11 @@ class AutomaticDispose {
|
||||
|
||||
self.PoliceVehicleFrameWatchDog = setTimeout(async function (MissionID) {
|
||||
let self = this;
|
||||
await self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
||||
$("#adis-sprechwunsch-police-frame").attr("src", "");
|
||||
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
|
||||
return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => {
|
||||
await self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
||||
$("#adis-sprechwunsch-police-frame").attr("src", "");
|
||||
$("#adis-sprechwunsch-police-frame").attr("mission_id", "empty");
|
||||
});
|
||||
});
|
||||
}.bind(self), 1500, MissionID);
|
||||
}
|
||||
@@ -958,7 +962,7 @@ class AutomaticDispose {
|
||||
});
|
||||
}
|
||||
}).then(() => {
|
||||
|
||||
|
||||
if (typeof MissionID != 'undefined') {
|
||||
return self.AddMission(MissionID, Runner);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user