From 877478b3740719374df7c10d55e1cf59b40c637f Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 12 Sep 2020 21:35:59 -0500 Subject: [PATCH] =?UTF-8?q?refactor(archival):=20=E2=99=BB=20add=20filePat?= =?UTF-8?q?h=20to=20UoW=20transaction=20immediately?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Persistence/GitFileArchiver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/Archival/FilterLists.Archival.Infrastructure/Persistence/GitFileArchiver.cs b/services/Archival/FilterLists.Archival.Infrastructure/Persistence/GitFileArchiver.cs index 0f6a3e169..4e172b37f 100644 --- a/services/Archival/FilterLists.Archival.Infrastructure/Persistence/GitFileArchiver.cs +++ b/services/Archival/FilterLists.Archival.Infrastructure/Persistence/GitFileArchiver.cs @@ -26,9 +26,9 @@ public async Task ArchiveFileAsync( string filePath, CancellationToken cancellationToken = default) { + _filePaths.Add(filePath); await using var output = File.OpenWrite(filePath); await fileContents.CopyToAsync(output, cancellationToken); - _filePaths.Add(filePath); } public void Commit()