v2 update
This commit is contained in:
@@ -135,14 +135,11 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
ADSettings() {
|
||||
let that = this;
|
||||
return (async () => {
|
||||
var res = {};
|
||||
await that.ADisDB.ADisSettings.each((setting) => {
|
||||
res[setting.name] = setting.value;
|
||||
});
|
||||
return res;
|
||||
})()
|
||||
var res = {};
|
||||
await this.ADisDB.ADisSettings.each((setting) => {
|
||||
res[setting.name] = setting.value;
|
||||
});
|
||||
return res;
|
||||
}
|
||||
|
||||
get WindowName() {
|
||||
@@ -195,7 +192,7 @@ class AutomaticDispose {
|
||||
|
||||
OpenNextRescueSprechwunsch() {
|
||||
let that = this;
|
||||
this.ADSettings.then((setting) => {
|
||||
this.ADSettings().then((setting) => {
|
||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||
return that.ADisDB.ADisSprechwunsch.where({
|
||||
done: 'false'
|
||||
@@ -286,7 +283,7 @@ class AutomaticDispose {
|
||||
|
||||
OpenNextPoliceSprechwunsch() {
|
||||
let that = this;
|
||||
this.ADSettings.then((setting) => {
|
||||
this.ADSettings().then((setting) => {
|
||||
if (setting['Sprechwunsch-Automatic'] == 'true') {
|
||||
return that.ADisDB.ADisSprechwunschPolice.where({
|
||||
done: 'false'
|
||||
|
||||
Reference in New Issue
Block a user