app/controllers/healthcheck_controller.rb
# Renders a JSON array of all travel advice editions published between
# 2 days and 150 minutes ago. This is used by email-alert-monitoring to ensure
# that all published editions have been sent to publishing-api and triggered
# an email alert.
Renders a JSON array of all travel advice editions published between
2 days and 150 minutes ago. This is used by email-alert-monitoring to ensure
that all published editions have been sent to publishing-api and triggered
an email alert.
Renders a JSON array of all travel advice editions published between 2 days and 150 minutes ago . This is used by email - alert - monitoring to ensure that all published editions have been sent to publishing - api and triggered an email alert .
def recently_published_editions
    editions = editions_published_between_2_days_and_150_minutes_ago.each.map do |edition|
      {
        title: edition.title,
        published_at: edition.published_at,
      }
    end
    render json: { editions: editions }
  end
def recently_published_editions editions = editions_published_between_2_days_and_150_minutes_ago . each . map do | edition | { title : edition . title , published_at : edition . published_at , } end render json : { editions : editions } end
Renders a JSON array of all travel advice editions published between
2 days and 150 minutes ago.
Renders a JSON array of all travel advice editions published between 2 days and 150 minutes ago .