Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasleger committed Dec 18, 2024
1 parent 2432b98 commit a6bef53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/api/v1/quote_checks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def show
render json: quote_check_json
end

# rubocop:disable Metrics/MethodLength
def create
upload_file = quote_check_params[:file]

Expand All @@ -25,13 +26,14 @@ def create
)
@quote_check = quote_check_service.quote_check

# @quote_check = quote_check_service.check # Might be time consuming, TODO: move to background job is needed
QuoteCheckCheckJob.perform_later(@quote_check.id)
QuoteCheckCheckJob.perform_later(@quote_check.id) # Might be time consuming so make it async with background job
# @quote_check = QuoteCheckCheckJob.new.perform(@quote_check.id) # Local debug

QuoteCheckMailer.created(@quote_check).deliver_later

render json: quote_check_json(@quote_check), status: :created
end
# rubocop:enable Metrics/MethodLength

protected

Expand Down

0 comments on commit a6bef53

Please sign in to comment.