@opengis/fastify-table 1.2.79 → 1.2.81

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.79",
3
+ "version": "1.2.81",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [
@@ -314,7 +314,7 @@ export default async function dataAPI(req, reply, called) {
314
314
  }
315
315
 
316
316
  const result = await applyHook('afterData', {
317
- pg, table: loadTable?.table || tokenData?.table, payload: res, user,
317
+ pg, table: loadTable?.table || tokenData?.table, id: tokenData?.id || hookData?.id || params.id, template: tokenData?.table || hookData?.table || params.table, payload: res, user,
318
318
  });
319
319
 
320
320
  return result || res;