diff --git a/ds-caselaw-ingester/lambda_function.py b/ds-caselaw-ingester/lambda_function.py index 78366bc..3255812 100644 --- a/ds-caselaw-ingester/lambda_function.py +++ b/ds-caselaw-ingester/lambda_function.py @@ -530,7 +530,7 @@ def handler(event, context): force_publish = Metadata(metadata).force_publish if force_publish is True: print(f"auto_publishing {consignment_reference} at {uri}") - api_client.set_published(uri) + api_client.set_published(uri, True) if api_client.get_published(uri) or force_publish: update_published_documents(uri, s3_client) diff --git a/ds-caselaw-ingester/tests.py b/ds-caselaw-ingester/tests.py index 3836725..0969ad9 100644 --- a/ds-caselaw-ingester/tests.py +++ b/ds-caselaw-ingester/tests.py @@ -187,7 +187,7 @@ def test_handler_messages_s3( assert "Upload Successful" in log assert "Ingestion complete" in log assert "auto_publish" in log - apiclient.set_published.assert_called_with("failures/TDR-2020-FAR") + apiclient.set_published.assert_called_with("failures/TDR-2020-FAR", True) notify_new.assert_not_called() notify_updated.assert_not_called() annotation.assert_called_with(