slovensko-digital/harvester.ecosystem

View on GitHub
app/jobs/itms/sync_accounts_receivable_document_job.rb

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method perform has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def perform(itms_href, downloader: ItmsJob::Downloader)
    json = downloader.get_json_from_href(itms_href)

    ActiveRecord::Base.transaction do
      ard = Itms::AccountsReceivableDocument.find_or_create_by!(itms_id: json['id'])
Severity: Minor
Found in app/jobs/itms/sync_accounts_receivable_document_job.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status