diff --git a/app/lib/local_links_manager/export/links_exporter.rb b/app/lib/local_links_manager/export/links_exporter.rb index fedbb571e..cea85f327 100644 --- a/app/lib/local_links_manager/export/links_exporter.rb +++ b/app/lib/local_links_manager/export/links_exporter.rb @@ -65,8 +65,8 @@ def records private def links(local_authority_id, status) - Link.enabled_links.public_send(status) - .where(local_authority_id:) + Link.enabled_links + .where(local_authority_id:, status:) .joins(:local_authority, :service, :interaction) .select(*SELECTION) .order("services.lgsl_code", "interactions.lgil_code").all