Fix queries when returning nulls
This commit is contained in:
parent
5ecc145228
commit
b4b805ac1c
|
@ -174,7 +174,9 @@ class QueryRunner {
|
|||
}
|
||||
|
||||
// needs to an array for next step
|
||||
if (!Array.isArray(rows)) {
|
||||
if (rows === null) {
|
||||
rows = []
|
||||
} else if (!Array.isArray(rows)) {
|
||||
rows = [rows]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue