sub data
This commit is contained in:
@@ -48,7 +48,7 @@ class MyProductsService(BaseService):
|
|||||||
|
|
||||||
response_data = {
|
response_data = {
|
||||||
"subscription": subscription,
|
"subscription": subscription,
|
||||||
"member_id": 1,
|
"member_id": member_id,
|
||||||
"uid": '',
|
"uid": '',
|
||||||
}
|
}
|
||||||
return ResponseHelper.success(data=response_data)
|
return ResponseHelper.success(data=response_data)
|
||||||
|
|||||||
@@ -67,7 +67,9 @@ class MembersProducts(db.Model):
|
|||||||
try:
|
try:
|
||||||
db.session.add(subscription)
|
db.session.add(subscription)
|
||||||
except IntegrityError as err:
|
except IntegrityError as err:
|
||||||
raise ValueError(f"Database integrity error: {err}")
|
logger.error(f" Error inserting subscription data {err} -- {subscription}")
|
||||||
|
#raise ValueError(f"Database integrity error: {err} {subscription}")
|
||||||
|
return []
|
||||||
return subscription
|
return subscription
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user