Skip to content

Commit 1bfa3d2

Browse files
committed
Also qualify find's where isAttribute in WHERE
1 parent 00d0b6d commit 1bfa3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class DSSqlAdapter {
179179
return query
180180
.select(`${table}.*`)
181181
.from(table)
182-
.where(resourceConfig.idAttribute, toString(id))
182+
.where(`${table}.${resourceConfig.idAttribute}`, toString(id))
183183
.then(rows => {
184184
if (!rows.length) {
185185
return Promise.reject(new Error('Not Found!'))

0 commit comments

Comments
 (0)