Correcting firm initialization return value

This commit is contained in:
2025-04-18 11:18:49 +02:00
parent ef37d28e1b
commit fc5c63fe87

View File

@@ -31,7 +31,7 @@ async def create(schema: CurrentFirmSchemaCreate, reg=Depends(get_uninitialized_
primary_color=schema.primary_color, primary_color=schema.primary_color,
secondary_color=schema.secondary_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") @current_firm_router.put("/", response_description=f"Current Firm record updated")
async def update(schema: CurrentFirmSchemaUpdate, reg=Depends(get_authed_tenant_registry)) -> CurrentFirmSchemaRead: async def update(schema: CurrentFirmSchemaUpdate, reg=Depends(get_authed_tenant_registry)) -> CurrentFirmSchemaRead: