Fakultas Ilmu Komputer UI

Commit 450ebd87 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Fix pagination on post

parent 92aa64fb
......@@ -6,7 +6,7 @@ defmodule DiskuyWeb.PostPagesController do
# Pages Per threads
def pages_thread(conn, %{"thread_id" => thread_id}) do
query = ForumPostPage.page_per_thread(thread_id) |> Repo.paginate()
query = ForumPostPage.page_per_thread(thread_id)
paginate_and_render(conn, query)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment