Skip to content

Commit 499f440

Browse files
committed
Fixed thenable chain in db.select
Closes: #212 PR-URL: #217
1 parent 05b09b4 commit 499f440

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [Unreleased][unreleased]
44

55
- Support `null` as value for `update`
6+
- Fixed thenable chain in `db.select`
67

78
## [2.0.1][] - 2021-09-10
89

lib/database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class Query {
121121

122122
then(resolve, reject) {
123123
const { sql, args } = this.prepare();
124-
this.db.query(sql, args).then((result) => {
124+
return this.db.query(sql, args).then((result) => {
125125
resolve(result.rows);
126126
}, reject);
127127
}

0 commit comments

Comments
 (0)