Skip to content

Commit

Permalink
oopsy
Browse files Browse the repository at this point in the history
  • Loading branch information
pabois committed Jan 13, 2025
1 parent 485f1fd commit 8b95657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/communication/website/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Communication::Website::Post < ApplicationRecord
}

scope :latest_in, -> (language) { published_now_in(language).order("communication_website_post_localizations.published_at DESC").limit(5) }
scope :for_author, -> (author_ids, language = nil) { joins(:authors).where(communication_website_post_authors: { id: author_ids }).distinct }
scope :for_author, -> (author_ids, language = nil) { joins(:authors).where(university_people: { id: author_ids }).distinct }
scope :for_category, -> (category_ids, language = nil) { joins(:categories).where(communication_website_post_categories: { id: category_ids }).distinct }
scope :for_search_term, -> (term, language) {
joins(:localizations)
Expand Down

0 comments on commit 8b95657

Please sign in to comment.