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.
db.select
1 parent 05b09b4 commit 499f440Copy full SHA for 499f440
CHANGELOG.md
@@ -3,6 +3,7 @@
3
## [Unreleased][unreleased]
4
5
- Support `null` as value for `update`
6
+- Fixed thenable chain in `db.select`
7
8
## [2.0.1][] - 2021-09-10
9
lib/database.js
@@ -121,7 +121,7 @@ class Query {
121
122
then(resolve, reject) {
123
const { sql, args } = this.prepare();
124
- this.db.query(sql, args).then((result) => {
+ return this.db.query(sql, args).then((result) => {
125
resolve(result.rows);
126
}, reject);
127
}
0 commit comments