修改issues order

This commit is contained in:
sylor_huang@126.com 2020-05-08 14:54:32 +08:00
parent fe32adee16
commit ce0e3754eb
1 changed files with 1 additions and 2 deletions

View File

@ -41,8 +41,7 @@ class Issues::ListQueryService < ApplicationService
order_type = params[:order_type] || "desc" #或者"asc"
order_name = params[:order_name] || "created_on" #或者"updated_on"
issues.reorder("#{order_name} #{order_type}")
issues.reorder("issues.#{order_name} #{order_type}")
end
end