From b3ec0bda0c3c8b93b30d90af0d6d021b8ae427eb Mon Sep 17 00:00:00 2001 From: Doug Patterson Date: Wed, 14 Feb 2024 12:29:43 -0800 Subject: [PATCH] fix date comparison queries --- packages/knex/src/adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/knex/src/adapter.ts b/packages/knex/src/adapter.ts index a4d4051e1a..8e6c6cb0b0 100644 --- a/packages/knex/src/adapter.ts +++ b/packages/knex/src/adapter.ts @@ -86,7 +86,7 @@ export class KnexAdapter< return Object.keys(query || {}).reduce((currentQuery, key) => { const value = query[key] - if (_.isObject(value)) { + if (_.isObject(value) && !(value instanceof Date)) { return knexify(currentQuery, value, key) }