Skip to content

Commit 73b75c1

Browse files
authored
Fix read threads order for non-admins (#99)
1 parent fba63e3 commit 73b75c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/app/api/routes/threads.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def read_threads(
6161
.where(Team.owner_id == current_user.id, Thread.team_id == team_id)
6262
.offset(skip)
6363
.limit(limit)
64+
.order_by(col(Thread.updated_at).desc())
6465
)
6566
threads = session.exec(statement).all()
6667
return ThreadsOut(data=threads, count=count)

0 commit comments

Comments
 (0)