From 174c5ab0f15ba27c5a77081aa3f034a8198766ed Mon Sep 17 00:00:00 2001 From: nadavosa Date: Tue, 26 May 2026 16:36:19 +0200 Subject: [PATCH] feat(#488): expose agent id in opportunity agent DTO Co-Authored-By: Claude Sonnet 4.6 --- src/services/dto/dto-agent.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/services/dto/dto-agent.ts b/src/services/dto/dto-agent.ts index ca2e2081..0c31c1a8 100644 --- a/src/services/dto/dto-agent.ts +++ b/src/services/dto/dto-agent.ts @@ -44,10 +44,14 @@ export function dtoAgentGet( export function dtoOpportunityAgent(agent: Agent): ApiOpportunityAgent { return { + id: agent.id, type: agent.type, name: agent.title, address: serializeAddress(agent.representative?.person?.address), - district: { id: agent.districtId, title: { de: agent.district?.title } }, + district: { + id: agent.districtId, + title: { de: agent.district?.title, en: agent.district?.title }, + }, }; }