新增:select字段增加created_on

This commit is contained in:
yystopf 2023-04-12 16:17:46 +08:00
parent e1f38e946b
commit 09d9f9a94e
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class Api::V1::Issues::ListService < ApplicationService
end
if only_name.present?
scope = issues.select(:id, :subject, :project_issues_index)
scope = issues.select(:id, :subject, :project_issues_index, :updated_on, :created_on)
scope = scope.reorder("project_issues_index asc").distinct
else
scope = issues.includes(:priority, :issue_status, :user, :show_assigners, :show_issue_tags, :version, :comment_journals)