From b909f1c987eb4aa0311d07d5608cf324fa392a7a Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 9 May 2026 08:20:35 -0400 Subject: [PATCH] contact actions --- app/api/services/contacts.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/app/api/services/contacts.py b/app/api/services/contacts.py index 7b4d79c..23ee87f 100644 --- a/app/api/services/contacts.py +++ b/app/api/services/contacts.py @@ -89,6 +89,21 @@ class ContactService(BaseService): @staticmethod def process_save_contacts(data): - logger.info(f"An error occurred: {data}", exc_info=True) - pass + logger.info(f"Process_save_contacts IN -> : {data}", exc_info=True) + message = data.get('message', '') + subscription_uid = data.get('subscription_uid', '') + title = data.get('title', '') + email = data.get('email', '') + sender = data.get('sender', '') + memSubb = MembersProducts.get_member_product_by_subscription_uid(subscription_uid) + if memSubb: + member_id = memSubb.member_id, + product_id = memSubb.product_id + if message != '' and title != '' and email != '' and sender != '': + logger.info(f"Ready to save data: {data}", exc_info=True) + + + + +