diff --git a/backend/src/user_questions/models.py b/backend/src/user_questions/models.py index 0f31ed6b..70a551eb 100644 --- a/backend/src/user_questions/models.py +++ b/backend/src/user_questions/models.py @@ -36,6 +36,6 @@ class Point(Base): notes = relationship( "Note", - primaryjoin=and_(id == foreign(Note.parent_id), Note.parent_type == "note"), + primaryjoin=and_(id == foreign(Note.parent_id), Note.parent_type == "point"), backref="point", )