mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 03:10:48 +08:00
修复:筛选时间不在范围内
This commit is contained in:
@@ -151,7 +151,7 @@ class Api::V1::Issues::ListService < ApplicationService
|
||||
end
|
||||
|
||||
if update_begin_date&.present? || update_end_date&.present?
|
||||
issues = issues.where('issues.updated_on between ? and ?', update_begin_date&.present? ? update_begin_date.to_time : Time.now.beginning_of_day, update_end_date&.present? ? update_end_date.to_time.end_of_day : Time.now.end_of_day)
|
||||
issues = issues.where('issues.updated_on between ? and ?', update_begin_date&.present? ? update_begin_date.to_time.beginning_of_week : Time.now.beginning_of_week, update_end_date&.present? ? update_end_date.to_time.end_of_week : Time.now.end_of_week)
|
||||
end
|
||||
|
||||
# keyword
|
||||
|
||||
Reference in New Issue
Block a user