db.session.flush()

This commit is contained in:
CHIEFSOFT\ameye
2025-07-21 14:38:26 -04:00
parent 0efd28a76b
commit 1fd547a2a1
+1
View File
@@ -39,6 +39,7 @@ class PasswordReset(db.Model):
logger.info(f"About to reset the password**********")
try:
db.session.add(pass_reset)
db.session.flush()
logger.info(f"After Insert to reset the password**********")
except IntegrityError as err:
raise ValueError(f"Database integrity error: {err}")