mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-21 12:53:11 +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 =
|
posts =
|
||||||
Post
|
Post
|
||||||
|> where(topic_id: ^conn.assigns.topic.id)
|
|> where(topic_id: ^conn.assigns.topic.id)
|
||||||
|> order_by(asc: :created_at, asc: :id)
|
|> order_by(asc: :created_at)
|
||||||
|> preload([:user, topic: :forum])
|
|> preload([:user, topic: :forum])
|
||||||
|> limit(25)
|
|> limit(25)
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
|
|
Loading…
Reference in a new issue