mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
Corrected tests
This commit is contained in:
parent
4bf656f425
commit
cc4d4d0e1f
16 changed files with 56 additions and 41 deletions
|
@ -6,9 +6,10 @@ module Admin
|
|||
# rubocop:disable Metrics/MethodLength
|
||||
def index
|
||||
@q = ApiLog::EppLog.ransack(PartialSearchFormatter.format(params[:q]))
|
||||
@result = @q.result
|
||||
@q.sorts = 'id desc' if @q.sorts.empty?
|
||||
|
||||
@epp_logs = @q.result
|
||||
@epp_logs = @result
|
||||
if params[:q][:created_at_gteq].present?
|
||||
@epp_logs = @epp_logs.where("extract(epoch from created_at) >= extract(epoch from ?::timestamp)",
|
||||
Time.parse(params[:q][:created_at_gteq]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue