diff --git a/app/services/data_exports/export_resources_service.rb b/app/services/data_exports/export_resources_service.rb index fa23d478370..e45b8b720b3 100644 --- a/app/services/data_exports/export_resources_service.rb +++ b/app/services/data_exports/export_resources_service.rb @@ -18,7 +18,7 @@ def call data_export.file.attach( io: StringIO.new(file_data), filename:, - key: data_export.membership_id, + key: "data_exports/#{data_export.id}.#{data_export.format}", content_type: )