Skip to content

Commit 1ef9d22

Browse files
committed
Merge pull request #14 from internalfx/master
set correct filter criteria
2 parents 2ec134d + 0bd270a commit 1ef9d22

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ class DSRethinkDBAdapter {
6969
let subQuery
7070
forOwn(params.where, function (criteria, field) {
7171
if (!isObject(criteria)) {
72-
params.where[field] = {
73-
'==': criteria
74-
}
72+
criteria = {'==': criteria}
7573
}
7674
forOwn(criteria, function (v, op) {
7775
if (op === '==' || op === '===') {

0 commit comments

Comments
 (0)