Skip to content

Commit 23bafe1

Browse files
author
Doug Patterson
authored
fix(knex): Fix Knex adapter date comparison queries (#3429)
1 parent 084bed9 commit 23bafe1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/knex/src/adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class KnexAdapter<
8686
return Object.keys(query || {}).reduce((currentQuery, key) => {
8787
const value = query[key]
8888

89-
if (_.isObject(value)) {
89+
if (_.isObject(value) && !(value instanceof Date)) {
9090
return knexify(currentQuery, value, key)
9191
}
9292

0 commit comments

Comments
 (0)