Skip to content

Commit 7d1d95e

Browse files
authored
Merge pull request #484 from omertuc/nons
Remove nonsensical `user_id` filter
2 parents c017e78 + d7a3c09 commit 7d1d95e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/endpoints/query.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ def persist_user_conversation_details(
8181
"""Associate conversation to user in the database."""
8282
with get_session() as session:
8383
existing_conversation = (
84-
session.query(UserConversation)
85-
.filter_by(id=conversation_id, user_id=user_id)
86-
.first()
84+
session.query(UserConversation).filter_by(id=conversation_id).first()
8785
)
8886

8987
if not existing_conversation:

0 commit comments

Comments
 (0)