Fixing similar issue in queries for context handling and fixing some issues raised by IDE.

This commit is contained in:
mike12345567 2022-05-03 16:04:59 +01:00
parent c66cbcd522
commit 9386a82e6f
2 changed files with 9 additions and 10 deletions

View File

@ -100,10 +100,10 @@ class Orchestrator {
let automation = this._automation
const app = await this.getApp()
let stopped = false
let loopStep
let loopStep = null
let stepCount = 0
let loopStepNumber
let loopStepNumber = null
let loopSteps = []
for (let step of automation.definition.steps) {
stepCount++

View File

@ -191,14 +191,13 @@ class QueryRunner {
}
module.exports = (input, callback) => {
doInAppContext(input.appId, () => {
doInAppContext(input.appId, async () => {
const Runner = new QueryRunner(input)
Runner.execute()
.then(response => {
try {
const response = await Runner.execute()
callback(null, response)
})
.catch(err => {
} catch (err) {
callback(err)
})
}
})
}