Skip to content

Commit

Permalink
FFS-2175: Adding DB query to /health endpoint (#401)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Dooner <[email protected]>
  • Loading branch information
George Byers and tdooner authored Dec 19, 2024
1 parent 87e9343 commit 69a0315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/app/controllers/health_check_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class HealthCheckController < ActionController::Base
def ok
# keep the database connection alive
ActiveRecord::Base.connection.execute("SELECT 1")
render json: { status: "ok", version: ENV["IMAGE_TAG"] }
end

Expand Down

0 comments on commit 69a0315

Please sign in to comment.