mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
remove second sort
This commit is contained in:
parent
6a741d1b2c
commit
5d5549c457
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ defmodule PhilomenaWeb.TopicController do
|
|||
posts =
|
||||
Post
|
||||
|> where(topic_id: ^conn.assigns.topic.id)
|
||||
|> order_by(asc: :created_at, asc: :id)
|
||||
|> order_by(asc: :created_at)
|
||||
|> preload([:user, topic: :forum])
|
||||
|> limit(25)
|
||||
|> Repo.all()
|
||||
|
|
Loading…
Reference in a new issue