Skip to content

Commit

Permalink
revert back to DeleteFilesAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed May 25, 2024
1 parent cc4fe3d commit f641225
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MyApp.ServiceInterface/Data/QuestionsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f641225

Please sign in to comment.