From 49c7622d234b410684de58e6591624d6a9b0ca74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D5=A1=C9=A8=D5=BC=C9=A2=D3=84=D5=A1=D6=85=D5=BC=C9=A2?= Date: Wed, 18 Oct 2023 11:05:12 +0800 Subject: [PATCH] chore(nocodb): lint --- packages/nocodb/src/db/conditionV2.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/db/conditionV2.ts b/packages/nocodb/src/db/conditionV2.ts index 1bbbc596a5..38a23e6f67 100644 --- a/packages/nocodb/src/db/conditionV2.ts +++ b/packages/nocodb/src/db/conditionV2.ts @@ -553,7 +553,9 @@ const parseConditionV2 = async ( val = `%${val}%`.replace(/^%'([\s\S]*)'%$/, '%$1%'); } else { val = - (val + '').startsWith('%') || (val + '').endsWith('%') ? val : `%${val}%`; + (val + '').startsWith('%') || (val + '').endsWith('%') + ? val + : `%${val}%`; } if (qb?.client?.config?.client === 'pg') { qb = qb.where(knex.raw('??::text ilike ?', [field, val]));