Skip to content

Commit

Permalink
chore(blog): sort news by created_at
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Feb 19, 2024
1 parent 9ba4257 commit dc5de0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/repos/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def latest_news(self, size=10) -> List[Document]:
TeamTopic.id == get_config().RELAY_NEWS_TEAM_TOPIC_ID
)
)
.order_by(Document.last_updated_at.desc())
.order_by(Document.created_at.desc())
.limit(size)
)
)
Expand Down

0 comments on commit dc5de0e

Please sign in to comment.