Skip to content

Commit

Permalink
Unbreak sqlite support, extract id correctly for all DBs
Browse files Browse the repository at this point in the history
  • Loading branch information
KidkArolis committed Dec 17, 2020
1 parent e8990b3 commit cc8fd37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ class Service extends AdapterService {

if (data[this.id] !== undefined) {
id = data[this.id]
} else if (!returning.length) {
id = rows[0]
} else if (rows[0] && rows[0][this.id]) {
id = rows[0][this.id]
}
Expand Down

0 comments on commit cc8fd37

Please sign in to comment.