Merge pull request #15290 from Budibase/fix/handle-nulls-responses-in-redis

Fix queries when returning nulls
This commit is contained in:
Adria Navarro 2025-01-03 11:14:38 +01:00 committed by GitHub
commit d50b59336d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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]
}