@opengis/fastify-table 1.2.64 → 1.2.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "1.2.64",
3
+ "version": "1.2.65",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [
@@ -205,7 +205,7 @@ function formatValue({
205
205
  return { op: 'ilike', query, extra };
206
206
  }
207
207
 
208
- const query = data && sql
208
+ const query = data && sql && filterType == 'text'
209
209
  ? `${name || filter?.id} in ( ( with q(id,name) as (${sql}) select id from q where ${filterType === 'autocomplete' ? 'id' : 'name'}::text ${match}) )` // filter with cls
210
210
  : `${name}::text ${match}`; // simple filter
211
211
  // console.log(query);