Skip to content

Commit 56490be

Browse files
authored
OTWO-openhub_restarts (#1611)
Change to health endpoint to not access db
1 parent df2fff7 commit 56490be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/controllers/sessions_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def create
2323
end
2424

2525
def health
26-
if ApplicationRecord.connected?
26+
# if ApplicationRecord.connected?
2727
render plain: Time.current
28-
else
29-
head :internal_server_error
30-
end
28+
# else
29+
# head :internal_server_error
30+
# end
3131
end
3232

3333
private

0 commit comments

Comments
 (0)