fix return

This commit is contained in:
CHIEFSOFT\ameye
2025-09-22 09:54:24 -04:00
parent 3282815627
commit 0629824a6d
2 changed files with 5 additions and 4 deletions
+2 -3
View File
@@ -225,12 +225,11 @@ class AccountService(BaseService):
#verify is anybody is using this url name
urlNammeData = MembersProfile.get_member_product_by_url_name(url_name)
if urlNammeData:
save_error = {
return {
"error": 'Duplicate url name',
"error_message": 'Try another url name',
"url_name": url_name,
}
return ResponseHelper.error(data=save_error)
}, 400
profile_uid = ''
profile_completed = None
+3 -1
View File
@@ -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)