mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Fix advanced filters for added on field [SCI-6578] (#3895)
This commit is contained in:
parent
69964aae7b
commit
c0e4b6f1f6
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ class RepositoryDatatableService
|
|||
when 'today'
|
||||
repository_rows.where(
|
||||
"date_trunc('minute', \"repository_rows\".\"created_at\") >= ? AND " \
|
||||
"date_trunc('minute', \"repository_rows\".\"created_at\" < ?)",
|
||||
"date_trunc('minute', \"repository_rows\".\"created_at\") < ?",
|
||||
Time.zone.now.beginning_of_day,
|
||||
Time.zone.now.end_of_day
|
||||
)
|
||||
|
@ -202,7 +202,7 @@ class RepositoryDatatableService
|
|||
)
|
||||
when 'this_month'
|
||||
repository_rows.where(
|
||||
"date_trunc('minute', \"archived_on\") >= ? AND date_trunc('minute', \"archived_on\") <= ?",
|
||||
"date_trunc('minute', \"created_at\") >= ? AND date_trunc('minute', \"created_at\") <= ?",
|
||||
Time.zone.now.beginning_of_month,
|
||||
Time.zone.now.end_of_month
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue