From fc5c63fe876c3f863b7a9c11295641d4d28d8677 Mon Sep 17 00:00:00 2001 From: Gentile G Date: Fri, 18 Apr 2025 11:18:49 +0200 Subject: [PATCH] Correcting firm initialization return value --- api/rpk-api/firm/current_firm/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/rpk-api/firm/current_firm/routes.py b/api/rpk-api/firm/current_firm/routes.py index b4a803d..3f5c506 100644 --- a/api/rpk-api/firm/current_firm/routes.py +++ b/api/rpk-api/firm/current_firm/routes.py @@ -31,7 +31,7 @@ async def create(schema: CurrentFirmSchemaCreate, reg=Depends(get_uninitialized_ primary_color=schema.primary_color, secondary_color=schema.secondary_color, )) - return CurrentFirmSchemaRead.from_model(document) + return CurrentFirmSchemaRead.from_model_and_entities(document, EntityRead.from_model(corp), EntityRead.from_model(owner_entity)) @current_firm_router.put("/", response_description=f"Current Firm record updated") async def update(schema: CurrentFirmSchemaUpdate, reg=Depends(get_authed_tenant_registry)) -> CurrentFirmSchemaRead: