diff --git a/backend/LexBoxApi/Services/HgService.cs b/backend/LexBoxApi/Services/HgService.cs index 688928ab9..3d6d517c5 100644 --- a/backend/LexBoxApi/Services/HgService.cs +++ b/backend/LexBoxApi/Services/HgService.cs @@ -267,9 +267,9 @@ public async Task ExecuteHgRecover(string code, CancellationToken t return response; } - public async Task InvalidateDirCache(string code) + public Task InvalidateDirCache(string code) { - await ExecuteHgCommandServerCommand(code, "invalidatedircache", default); + return ExecuteHgCommandServerCommand(code, "invalidatedircache", default); } public async Task GetLexEntryCount(string code, ProjectType projectType) diff --git a/backend/LexCore/ServiceInterfaces/IHgService.cs b/backend/LexCore/ServiceInterfaces/IHgService.cs index e010611b8..5da6db548 100644 --- a/backend/LexCore/ServiceInterfaces/IHgService.cs +++ b/backend/LexCore/ServiceInterfaces/IHgService.cs @@ -18,6 +18,6 @@ public interface IHgService Task GetLexEntryCount(string code, ProjectType projectType); Task GetRepositoryIdentifier(Project project); Task ExecuteHgRecover(string code, CancellationToken token); - Task InvalidateDirCache(string code); + Task InvalidateDirCache(string code); bool HasAbandonedTransactions(string projectCode); }