VRFS-2136 only return recordings that have at least 1 claimed recording
This commit is contained in:
parent
c55413d349
commit
4bdcf103ce
|
|
@ -71,7 +71,9 @@ module JamRuby
|
|||
end
|
||||
|
||||
def recent_history
|
||||
recordings = Recording.where(:band_id => self.id)
|
||||
recordings = Recording
|
||||
.joins(:claimed_recordings)
|
||||
.where(:band_id => self.id)
|
||||
.order('created_at DESC')
|
||||
.limit(10)
|
||||
|
||||
|
|
|
|||
|
|
@ -357,7 +357,9 @@ module JamRuby
|
|||
end
|
||||
|
||||
def recent_history
|
||||
recordings = Recording.where(:owner_id => self.id)
|
||||
recordings = Recording
|
||||
.joins(:claimed_recordings)
|
||||
.where(:owner_id => self.id)
|
||||
.order('created_at DESC')
|
||||
.limit(10)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue