This commit is contained in:
Seth Call 2020-10-19 10:31:25 -05:00
parent 7b664d8968
commit a367f0a376
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ module JamRuby
.joins("LEFT OUTER JOIN music_sessions ON music_sessions.id = feeds.music_session_id")
.limit(limit)
.where('feeds.recording_id is NULL OR (recordings.all_discarded = false AND recordings.deleted = false)') # remove any 'all_discarded recordings from the search results' or 'deleted'
s
query = Search.scope_schools_together_feeds(query, user)
# handle sort