From 593dcb827493fe432eac9142f3bd4b70a50ec483 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Thu, 9 May 2024 15:03:44 +0700 Subject: [PATCH] Try to await the result of invalidatedircache call --- backend/LexBoxApi/Services/HgService.cs | 4 ++-- backend/LexCore/ServiceInterfaces/IHgService.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }