Merge pull request #15290 from Budibase/fix/handle-nulls-responses-in-redis
Fix queries when returning nulls
This commit is contained in:
commit
d50b59336d
|
@ -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