Remove notification service check from health check endpoint [SCI-5526]

This commit is contained in:
Oleksii Kriuchykhin 2021-03-04 09:38:25 +01:00
parent 2b5709e75f
commit d557739f2e

View file

@ -36,11 +36,6 @@ module Api
def health
User.new && Team.new && Project.new
User.first if params[:db]
if Rails.application.secrets.system_notifications_uri.present? &&
Rails.application.secrets.system_notifications_channel.present? &&
!Notifications::SyncSystemNotificationsService.available?
return render plain: 'SYSTEM NOTIFICATIONS SERVICE CHECK FAILED', status: :error
end
render plain: 'RUNNING'
end