Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gabina committed Dec 19, 2024
1 parent 5771ea9 commit 42d7b29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/course_data/articles_courses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def self.update_from_course_revisions(course, revisions)
{ article_id: id, course_id: course.id, first_revision: first_revisions[id] }
end

maybe_insert_new_records(course, new_records)
maybe_insert_new_records(new_records)
end

# Given an array of revisions and an array of article ids,
Expand All @@ -223,7 +223,7 @@ def self.get_first_revisions(revisions, new_article_ids)
min_dates
end

def self.maybe_insert_new_records(_course, new_records)
def self.maybe_insert_new_records(new_records)
return if new_records.empty?
# Do this in batches to avoid running the MySQL server out of memory
new_records.each_slice(5000) do |new_record_slice|
Expand Down

0 comments on commit 42d7b29

Please sign in to comment.