Skip to content

Commit

Permalink
ui: add origin to /feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
sykp241095 committed Oct 29, 2024
1 parent f995ae7 commit 2136e1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/api/admin_routes/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def list_feedbacks(
AdminFeedbackPublic(
**item.model_dump(),
chat_title=item.chat.title,
chat_origin=item.chat.origin,
chat_message_content=item.chat_message.content,
user_email=item.user.email if item.user else None,
)
Expand Down
1 change: 1 addition & 0 deletions backend/app/models/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class Feedback(BaseFeedback, table=True):
class AdminFeedbackPublic(BaseFeedback):
id: int
chat_title: str
chat_origin: str
chat_message_content: str
user_id: Optional[UUID]
user_email: Optional[str]

0 comments on commit 2136e1c

Please sign in to comment.