@opengis/fastify-table 2.0.22 → 2.0.23

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.
@@ -209,7 +209,7 @@ export default async function suggest(req) {
209
209
  // const ids = dataNew.map((el) => el.id);
210
210
  const data = dataNew.filter((el) => el.id && el.text);
211
211
  if (tableName && column) {
212
- const { name = column, type = "select" } = getColumnCLS(tableName, column) || {};
212
+ const { name = query.sel || column, type = "select" } = getColumnCLS(tableName, column) || {};
213
213
  await metaFormat({
214
214
  rows: data,
215
215
  table: tableName,
@@ -226,7 +226,7 @@ export default async function suggest(req) {
226
226
  data: data.map((el) => ({
227
227
  count: el.count,
228
228
  id: el.id,
229
- text: el.text,
229
+ text: el.text_text || el.text,
230
230
  ...(el.text_data || {}),
231
231
  })),
232
232
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "2.0.22",
3
+ "version": "2.0.23",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [