diff --git a/invenio_record_importer_kcworks/services/files.py b/invenio_record_importer_kcworks/services/files.py index 45f672b..bacccd2 100644 --- a/invenio_record_importer_kcworks/services/files.py +++ b/invenio_record_importer_kcworks/services/files.py @@ -403,7 +403,7 @@ def _compare_existing_files( print("existing files:", existing_files) if len(existing_files) == 0: same_files = False - record = records_service.files._get_record( + record = records_service.draft_files._get_record( draft_id, system_identity, "delete_files" ) print("record.files.entries:", record.files.entries)