contact actions
This commit is contained in:
@@ -55,11 +55,11 @@ class ProductsContacts(db.Model):
|
||||
)
|
||||
|
||||
try:
|
||||
logger.info(f" About to Insert Product Contact Data {product_contact_data.member_id} ")
|
||||
logger.info(f"About to Insert Product Contact Data {product_contact_data.member_id} ")
|
||||
db.session.add(product_contact_data)
|
||||
db.session.flush()
|
||||
db.session.commit()
|
||||
except IntegrityError as err:
|
||||
logger.error(f" Error inserting Contact Data {err} -- ")
|
||||
logger.error(f"Error inserting Contact Data {err} -- ")
|
||||
raise ValueError(f"Database integrity error: {err}")
|
||||
return product_contact_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user