fix return
This commit is contained in:
@@ -195,6 +195,8 @@ class MyProductsService(BaseService):
|
||||
member_data = Members.get_member_by_uid(uid)
|
||||
member_id = member_data.id
|
||||
|
||||
member_profile_data = MembersProfile.get_member_profile_by_profile_uid(uid)
|
||||
|
||||
product_id = validated_data.get('product_id')
|
||||
product_data = Products.get_product_by_product_id(product_id)
|
||||
|
||||
@@ -205,7 +207,7 @@ class MyProductsService(BaseService):
|
||||
"error_message": "Error - Please select a valid product to view",
|
||||
"data": None,
|
||||
"error": f"Product with ID {product_id} does not exist."
|
||||
}, 4000
|
||||
}, 400
|
||||
|
||||
logger.info(f"GET HERE ******************************** : {data}", exc_info=True)
|
||||
mumberSub = MembersProducts.get_member_product_by_product_member_id(member_id, product_id)
|
||||
|
||||
Reference in New Issue
Block a user