We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c017e78 + d7a3c09 commit 7d1d95eCopy full SHA for 7d1d95e
src/app/endpoints/query.py
@@ -81,9 +81,7 @@ def persist_user_conversation_details(
81
"""Associate conversation to user in the database."""
82
with get_session() as session:
83
existing_conversation = (
84
- session.query(UserConversation)
85
- .filter_by(id=conversation_id, user_id=user_id)
86
- .first()
+ session.query(UserConversation).filter_by(id=conversation_id).first()
87
)
88
89
if not existing_conversation:
0 commit comments