v2 update

This commit is contained in:
2018-11-28 20:13:23 +01:00
parent d18218a1ab
commit fcc1f7276d
3 changed files with 16 additions and 22 deletions

View File

@@ -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'