Skip to content

Commit dab9293

Browse files
Merge feature/content-status into staging
2 parents c3b48a8 + 55a0e91 commit dab9293

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/controllers/content_status_controller.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ def retrieve_language_data(country, language)
6969
language_name: language.name,
7070
lessons: retrieve_lessons_data(country, language),
7171
tools: retrieve_tools_data(country, language),
72-
last_updated: Resource.joins(:resource_scores).where(
73-
resource_scores: {country: country, language: language}
74-
).maximum(:updated_at)&.strftime("%d-%m-%y") || "N/A"
72+
last_updated: ResourceScore.where(country: country, language: language).maximum(:updated_at)&.strftime("%d-%m-%y") || "N/A"
7573
}
7674
end
7775

0 commit comments

Comments
 (0)