From 9888becc266867b9bc7029637759b8fed7290829 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 16 May 2026 08:34:29 -0400 Subject: [PATCH] Contact return --- app/api/services/contacts.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/api/services/contacts.py b/app/api/services/contacts.py index 3af1bf0..9fa17ef 100644 --- a/app/api/services/contacts.py +++ b/app/api/services/contacts.py @@ -134,7 +134,7 @@ class ContactService(BaseService): title = data.get('title', '') email = data.get('email', '') sender = data.get('sender', '') - contact_result = [] + contact_result = None memSubb = MembersProducts.get_member_product_by_subscription_uid(subscription_uid) if memSubb: member_id = memSubb.member_id, @@ -144,11 +144,12 @@ class ContactService(BaseService): contact_result = ProductsContacts.add_product_contact( member_id, product_id, subscription_uid, title, email, sender, message ) - + # if contact_result and contact_result.uid != '': + # response_data = { "last_message": datetime.datetime.utcnow(), "subscription_uid": subscription_uid, - "result": contact_result, + "result": contact_result.uid if contact_result and contact_result.uid != '' else None, } return ResponseHelper.success(data=response_data)