@opengis/fastify-table 1.3.68 → 1.3.69

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.3.68",
3
+ "version": "1.3.69",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [
@@ -194,8 +194,8 @@ export default async function suggest(req) {
194
194
  // query
195
195
  const { rows: dataNew } = await pg.query(sqlSuggest, query.key ? [`${query.key.toLowerCase()}`] : []);
196
196
  // const { rows: dataNew1 } = dataNew.length < limit ? await pg.query(sqlSuggest, query.key ? [`${query.key}`] : []) : {};
197
- const ids = dataNew.map((el) => el.id);
198
- const data = dataNew.concat((/* dataNew1 || */[]).filter(el => !ids?.includes(el.id))).filter(el => el.text);
197
+ // const ids = dataNew.map((el) => el.id);
198
+ const data = dataNew.filter(el => el.id && el.text);
199
199
 
200
200
  if (query.sel) {
201
201
  const clsData = await getSelectVal({
@@ -213,7 +213,7 @@ export default async function suggest(req) {
213
213
  data,
214
214
  dataNew,
215
215
  sqlSuggest,
216
- ids,
216
+ // ids,
217
217
  });
218
218
  }
219
219