From f6412255bf35b4c439f10ce286d9462937a3a2b0 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Sat, 25 May 2024 22:20:07 +0800 Subject: [PATCH] revert back to DeleteFilesAsync --- MyApp.ServiceInterface/Data/QuestionsProvider.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MyApp.ServiceInterface/Data/QuestionsProvider.cs b/MyApp.ServiceInterface/Data/QuestionsProvider.cs index e0cddc1..ca4ef2a 100644 --- a/MyApp.ServiceInterface/Data/QuestionsProvider.cs +++ b/MyApp.ServiceInterface/Data/QuestionsProvider.cs @@ -314,8 +314,7 @@ public async Task DeleteQuestionFilesAsync(int id) var localQuestionFiles = GetLocalQuestionFiles(id); fs.DeleteFiles(localQuestionFiles.Files.Select(x => x.VirtualPath)); var remoteQuestionFiles = await GetRemoteQuestionFilesAsync(id); - // await r2.DeleteFilesAsync(remoteQuestionFiles.Files.Select(x => x.VirtualPath)); - r2.DeleteFiles(remoteQuestionFiles.Files.Select(x => x.VirtualPath)); + await r2.DeleteFilesAsync(remoteQuestionFiles.Files.Select(x => x.VirtualPath)); } public async Task DeleteAnswerFileAsync(string answerId)