Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(plugins): hand a visit's stay_minutes to plugins in the assignment output contract (#3092)

Mauricec72c8dcaf7ee
diff --git a/plugin-sdk/src/generated/host-facts.ts b/plugin-sdk/src/generated/host-facts.ts
index af2df9b34..19af6d228 100644
--- a/plugin-sdk/src/generated/host-facts.ts
+++ b/plugin-sdk/src/generated/host-facts.ts
@@ -619,6 +619,7 @@ export const PLUGIN_ENTITY_FIELDS = {
'accommodation_id',
'tour_stage_key',
'created_at',
+ 'stay_minutes',
'participants',
'tour_place_id',
'tour_route_geometry',
diff --git a/server/src/nest/plugins/protocol/output-contract.ts b/server/src/nest/plugins/protocol/output-contract.ts
index 4fb1de6db..c4d577ec6 100644
--- a/server/src/nest/plugins/protocol/output-contract.ts
+++ b/server/src/nest/plugins/protocol/output-contract.ts
@@ -275,6 +275,7 @@ export const PLUGIN_ENTITY_CONTRACT = {
'accommodation_id',
'tour_stage_key',
'created_at',
+ 'stay_minutes',
],
withheld: [],
// The assignment read model names its fields one by one, its `place` included.