diff --git a/app/queries/posts/top_tracks.rb b/app/queries/posts/top_tracks.rb index 5817eca..4695577 100644 --- a/app/queries/posts/top_tracks.rb +++ b/app/queries/posts/top_tracks.rb @@ -9,8 +9,8 @@ module Adamantium def call(slug:) post = post_repo.fetch!(slug) - start_date = TimeMath.week.floor(post.published_at).to_i - end_date = TimeMath.week.ceil(post.published_at).to_i + start_date = TimeMath.week.floor(post.published_at) + end_date = TimeMath.week.ceil(post.published_at) top_tracks = top_track_repo.for_post(id: post.id)