We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32ab198 commit c7dff0cCopy full SHA for c7dff0c
lib/index.js
@@ -202,7 +202,7 @@ export default function Postgres(url, options) {
202
return {
203
rows: typeof args[0] === 'string'
204
? rows.map(x => Array.isArray(x) ? x : args.map(a => x[a])) // pluck
205
- : args[0] === 'function'
+ : typeof args[0] === 'function'
206
? rows.map(x => args[0](x)) // map
207
: rows
208
}
0 commit comments