From 42d7b299a69aa8ece28918050cc28d6eda7d6a33 Mon Sep 17 00:00:00 2001 From: gabina Date: Wed, 18 Dec 2024 23:55:23 -0300 Subject: [PATCH] Remove unused parameter --- app/models/course_data/articles_courses.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/course_data/articles_courses.rb b/app/models/course_data/articles_courses.rb index 231de310b4..af55388551 100644 --- a/app/models/course_data/articles_courses.rb +++ b/app/models/course_data/articles_courses.rb @@ -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, @@ -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|