fix(mcp): a transport priced without a category is stored under its Costs key

This commit is contained in:
Maurice
2026-11-04 15:12:20 +01:00
parent 9eab19ea6c
commit 67ca58f2a5
@@ -366,7 +366,8 @@ describe('Transport tools: the price link', () => {
});
const data = parseToolResult(result) as { reservation: { id: number } };
const item = await findRow(orm, BudgetItems, { reservation: data.reservation.id });
expect(item?.category).toBe('train');
// The type is stored as its Costs key: a train is a transport (#2835).
expect(item?.category).toBe('transport');
});
});