Merge branch 'develop' into standalone_develop

This commit is contained in:
yystopf 2023-03-20 16:13:48 +08:00
commit 6f79b5a751
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class Api::V1::Issues::ListService < ApplicationService
issues = issues.joins(:assigners).where(users: {id: assigner_id}) if assigner_id.present?
# status_id
issues = issues.where(status_id: status_id) if status_id.present?
issues = issues.where(status_id: status_id) if status_id.present? && category != 'closed'
if begin_date&.present? || end_date&.present?
issues = issues.where("issues.created_on between ? and ?", begin_date&.present? ? begin_date.to_time : Time.now.beginning_of_day, end_date&.present? ? end_date.to_time.end_of_day : Time.now.end_of_day)