Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jcraigk committed Nov 8, 2024
1 parent 5692d34 commit 95be1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/api_v2/years.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def stats_for(period)
else
shows.during_year(period)
end
cover_art_urls = Show.find_by(date: COVER_ART[period]).cover_art_urls
cover_art_urls = Show.find_by(date: COVER_ART[period])&.cover_art_urls
[ shows.count, shows.select(:venue_id).distinct.count, shows.sum(:duration), cover_art_urls ]
end
end
Expand Down

0 comments on commit 95be1ed

Please sign in to comment.