From 055e6a84a1b02df33fcf684ba72cf500e31fd758 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 4 Jan 2024 13:19:29 +0000 Subject: [PATCH] refactor: revert group by change --- packages/nocodb/src/db/conditionV2.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/db/conditionV2.ts b/packages/nocodb/src/db/conditionV2.ts index 9256249a81..6827b267fb 100644 --- a/packages/nocodb/src/db/conditionV2.ts +++ b/packages/nocodb/src/db/conditionV2.ts @@ -684,9 +684,11 @@ const parseConditionV2 = async ( ].includes(column.uidt) ) { if (qb.client.config.client === 'pg') { - if ((filter as any).groupby) - qb = qb.where(knex.raw('??::timestamp = ?', [field, val])); - else qb = qb.where(knex.raw('??::date = ?', [field, val])); + // todo: enbale back if group by date required custom implementation + // if ((filter as any).groupby) + // qb = qb.where(knex.raw('??::timestamp = ?', [field, val])); + // else + qb = qb.where(knex.raw('??::date = ?', [field, val])); } else { qb = qb.where(knex.raw('DATE(??) = DATE(?)', [field, val])); }