Use poolOrClientOrNull for the query

parent 50f4130d
......@@ -140,7 +140,7 @@ function insObj(poolOrClientOrNull, obj, tablename, callback) {
values : keys.map(key => obj[key]),
}
console.log('insObj() - query:', query)
exec(poolOrClientOrNull, query, callback)
poolOrClientOrNull.query(query, callback)
}
// --------------------------------------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment