Fix queries when returning nulls

This commit is contained in:
Adria Navarro 2025-01-03 11:02:09 +01:00
parent 5ecc145228
commit b4b805ac1c
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]
}