diff --git a/packages/nocodb/src/db/conditionV2.ts b/packages/nocodb/src/db/conditionV2.ts index 5a990ab1b6..a7889e8beb 100644 --- a/packages/nocodb/src/db/conditionV2.ts +++ b/packages/nocodb/src/db/conditionV2.ts @@ -581,8 +581,8 @@ const parseConditionV2 = async ( qb = qb.where(knex.raw('BINARY ?? = ?', [field, val])); } } else { - if(column.uidt === UITypes.DateTime) { - if(qb.client.config.client === 'pg') { + if (column.uidt === UITypes.DateTime) { + if (qb.client.config.client === 'pg') { qb = qb.where(knex.raw('??::date = ?', [field, val])); } else { qb = qb.where(knex.raw('DATE(??) = DATE(?)', [field, val]));