drizzle-orm-pg
Advanced tools
Comparing version 0.12.0-beta.18 to 0.12.0-beta.19
{ | ||
"name": "drizzle-orm-pg", | ||
"version": "0.12.0-beta.18", | ||
"version": "0.12.0-beta.19", | ||
"description": "Drizzle ORM package for PostgreSQL database", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,4 +45,5 @@ "use strict"; | ||
const result = yield this.session.query(sql, params); | ||
if (this.config.returning) { | ||
return (0, utils_1.mapResultRow)(this.config.returning, result.rows); | ||
const { returning } = this.config; | ||
if (returning) { | ||
return result.rows.map((row) => (0, utils_1.mapResultRow)(returning, row)); | ||
} | ||
@@ -49,0 +50,0 @@ return result; |
Sorry, the diff of this file is not supported yet
202976
2801