Skip to content

Commit

Permalink
Fix extract assignment in ExtractsController#index method
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianoflorentino committed Mar 13, 2024
1 parent 0f141e6 commit 8ab9ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/extracts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Extract controller
class ExtractsController < ApplicationController
def index
extract ||= TransactionUseCase::Extract.new(params[:customer_id]).call
extract = TransactionUseCase::Extract.new(params[:customer_id]).call

render json: extract, status: :ok
end
Expand Down

0 comments on commit 8ab9ef6

Please sign in to comment.