Skip to content

Commit

Permalink
Debugging heroku deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmchugh111 committed Sep 19, 2024
1 parent 852819f commit 68ef0a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/controllers/api/v1/links_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ def top_links
link.update(summary_timestamp: Time.current)
end
rescue Faraday::ConnectionFailed => e
link.update(summary: "Summary not available")
link.update(summary_timestamp: Time.current)
link.update(summary: "Summary not available")
link.update(summary_timestamp: Time.current)
rescue NoMethodError => e
link.update(summary: "Summary not available")
link.update(summary_timestamp: Time.current)
end
end

Expand Down

0 comments on commit 68ef0a3

Please sign in to comment.