@opengis/fastify-table 1.2.88 → 1.2.89

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.88",
3
+ "version": "1.2.89",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [
@@ -1,8 +1,8 @@
1
1
  import routeData from '../../../routes/table/controllers/data.js';
2
2
 
3
- export default async function getData({ id, table, pg, filter, state, limit, page, search, user, sql, contextQuery }, reply, called) {
3
+ export default async function getData({ id, table, pg, filter, state, limit, page, search, user, sql, contextQuery, sufix }, reply, called) {
4
4
  const params = { table, id };
5
5
  const query = { filter, limit, page, search, sql, state };
6
- const result = await routeData({ pg, params, query, user, contextQuery }, reply, called);
6
+ const result = await routeData({ pg, params, query, user, contextQuery, sufix }, reply, called);
7
7
  return result;
8
8
  }
@@ -15,7 +15,7 @@ const checkInline = {};
15
15
  const maxLimit = 100;
16
16
  export default async function dataAPI(req, reply, called) {
17
17
  const {
18
- pg = pgClients.client, params, query = {}, user = {}, contextQuery,
18
+ pg = pgClients.client, params, query = {}, user = {}, contextQuery, sufix = true,
19
19
  } = req;
20
20
 
21
21
  const time = Date.now();
@@ -187,7 +187,7 @@ export default async function dataAPI(req, reply, called) {
187
187
 
188
188
  await extraDataGet({ rows, table: loadTable?.table, form }, pg);
189
189
 
190
- await metaFormat({ rows, table: tokenData?.table || hookData?.table || params.table }, pg);
190
+ await metaFormat({ rows, table: tokenData?.table || hookData?.table || params.table, sufix }, pg);
191
191
  timeArr.push(Date.now())
192
192
  const status = [];
193
193
  if (loadTable?.meta?.status) {