Browse Source

调整用户获取站点排序

pull/338/head
呱呱呱 2 years ago
parent
commit
497c1d827f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/queries/page_query.rb

+ 1
- 1
app/queries/page_query.rb View File

@@ -7,7 +7,7 @@ class PageQuery < ApplicationQuery
end end


def call def call
pages = Page.where(user: @user)
pages = Page.where(user: @user).order(created_at: :desc)
pages pages
end end
end end

Loading…
Cancel
Save