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) + + + + +