Skip to content

Commit

Permalink
chore: update rgb transaction leap_direction filter (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz authored Jun 26, 2024
1 parent 7af8f65 commit e2ff84c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/interactions/rgb_transactions/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ def execute
annotations = BitcoinAnnotation.includes(:ckb_transaction).
where("bitcoin_annotations.tags @> array[?]::varchar[]", ["rgbpp"]).
order(order_by => asc_or_desc)

if leap_direction.present?
annotations = annotations.where("bitcoin_annotations.leap_direction = ?", leap_direction)
end

annotations = annotations.where(leap_direction:) if leap_direction.present?

Check warning on line 13 in app/interactions/rgb_transactions/index.rb

View check run for this annotation

Codecov / codecov/patch

app/interactions/rgb_transactions/index.rb#L13

Added line #L13 was not covered by tests
annotations.page(page).per(page_size)
end

Expand Down

0 comments on commit e2ff84c

Please sign in to comment.