Fix build
This commit is contained in:
parent
b422762461
commit
c42a8969c8
|
@ -127,16 +127,10 @@ class QueryRunner {
|
||||||
|
|
||||||
// transform as required
|
// transform as required
|
||||||
if (transformer) {
|
if (transformer) {
|
||||||
const runner = new ScriptRunner(
|
const runner = new ScriptRunner(transformer, {
|
||||||
transformer,
|
data: rows,
|
||||||
{
|
params: enrichedParameters,
|
||||||
data: rows,
|
})
|
||||||
params: enrichedParameters,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
parseBson: datasource.source === SourceName.MONGODB,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
rows = runner.execute()
|
rows = runner.execute()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,11 +152,6 @@ class QueryRunner {
|
||||||
return this.execute()
|
return this.execute()
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for undefined response
|
|
||||||
if (!rows) {
|
|
||||||
rows = []
|
|
||||||
}
|
|
||||||
|
|
||||||
// needs to an array for next step
|
// needs to an array for next step
|
||||||
if (!Array.isArray(rows)) {
|
if (!Array.isArray(rows)) {
|
||||||
rows = [rows]
|
rows = [rows]
|
||||||
|
|
Loading…
Reference in New Issue