Browse Source

chore(nocodb): lint

pull/6721/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
49c7622d23
  1. 4
      packages/nocodb/src/db/conditionV2.ts

4
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]));

Loading…
Cancel
Save