From aaed1b2d01e4b58864f231dbf16b73f18c0dc23c Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Mon, 23 Mar 2026 21:58:46 +0100 Subject: [PATCH] fix(tenancy): use correct Merchant.name field in team service merchant_store_service referenced merchant.business_name and merchant.brand_name which don't exist on the Merchant model. The field is simply merchant.name. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/modules/tenancy/services/merchant_store_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/tenancy/services/merchant_store_service.py b/app/modules/tenancy/services/merchant_store_service.py index 93f6bb71..1a5b3926 100644 --- a/app/modules/tenancy/services/merchant_store_service.py +++ b/app/modules/tenancy/services/merchant_store_service.py @@ -424,7 +424,7 @@ class MerchantStoreService: result.append(store_team) return { - "merchant_name": merchant.business_name or merchant.brand_name, + "merchant_name": merchant.name, "owner_email": merchant.owner.email if merchant.owner else None, "stores": result, "total_members": sum(s["member_count"] for s in result),