Spaces:
Sleeping

axeronis commited on
Commit
8cbde03
·
1 Parent(s): 46c4267

Fix ValidationError: Add missing business_type to TenantResponse

Browse files
Files changed (1) hide show
  1. backend/app/api/tenants.py +2 -0
backend/app/api/tenants.py CHANGED
@@ -115,6 +115,7 @@ async def get_my_tenant(
115
  id=tenant.id,
116
  name=tenant.name,
117
  business_name=tenant.business_name,
 
118
  ai_settings=tenant.ai_settings,
119
  tone_of_voice=getattr(tenant, 'tone_of_voice', 'Professional'),
120
  sales_methodology=getattr(tenant, 'sales_methodology', 'Consultative'),
@@ -302,6 +303,7 @@ async def update_tenant(
302
  id=tenant.id,
303
  name=tenant.name,
304
  business_name=tenant.business_name,
 
305
  ai_settings=tenant.ai_settings,
306
  tone_of_voice=getattr(tenant, 'tone_of_voice', 'Professional'),
307
  sales_methodology=getattr(tenant, 'sales_methodology', 'Consultative'),
 
115
  id=tenant.id,
116
  name=tenant.name,
117
  business_name=tenant.business_name,
118
+ business_type=getattr(tenant, "business_type", "hybrid"),
119
  ai_settings=tenant.ai_settings,
120
  tone_of_voice=getattr(tenant, 'tone_of_voice', 'Professional'),
121
  sales_methodology=getattr(tenant, 'sales_methodology', 'Consultative'),
 
303
  id=tenant.id,
304
  name=tenant.name,
305
  business_name=tenant.business_name,
306
+ business_type=getattr(tenant, "business_type", "hybrid"),
307
  ai_settings=tenant.ai_settings,
308
  tone_of_voice=getattr(tenant, 'tone_of_voice', 'Professional'),
309
  sales_methodology=getattr(tenant, 'sales_methodology', 'Consultative'),