From 7e0e604542694d37a72bef063ee7055644e60e72 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Thu, 9 Jan 2025 10:13:27 -0500 Subject: [PATCH] Rename one overload that was missed earlier --- backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs | 4 ++-- backend/FwLite/MiniLcm/Validators/MiniLcmValidators.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs b/backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs index bcf034b44..df1c5c047 100644 --- a/backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs +++ b/backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs @@ -327,7 +327,7 @@ public IAsyncEnumerable GetSemanticDomains() public async Task CreateSemanticDomain(SemanticDomain semanticDomain) { - await validators.ValidateAndThrowAsync(semanticDomain); + await validators.ValidateAndThrow(semanticDomain); if (semanticDomain.Id == Guid.Empty) semanticDomain.Id = Guid.NewGuid(); UndoableUnitOfWorkHelper.DoUsingNewOrCurrentUOW("Create Semantic Domain", "Remove semantic domain", @@ -360,7 +360,7 @@ public Task UpdateSemanticDomain(Guid id, UpdateObjectInput UpdateSemanticDomain(SemanticDomain before, SemanticDomain after) { - await validators.ValidateAndThrowAsync(after); + await validators.ValidateAndThrow(after); await SemanticDomainSync.Sync(before, after, this); return await GetSemanticDomain(after.Id) ?? throw new NullReferenceException($"unable to find semantic domain with id {after.Id}"); } diff --git a/backend/FwLite/MiniLcm/Validators/MiniLcmValidators.cs b/backend/FwLite/MiniLcm/Validators/MiniLcmValidators.cs index 1ddff866e..11f241ac6 100644 --- a/backend/FwLite/MiniLcm/Validators/MiniLcmValidators.cs +++ b/backend/FwLite/MiniLcm/Validators/MiniLcmValidators.cs @@ -43,7 +43,7 @@ public async Task ValidateAndThrow(PartOfSpeech value) await PartOfSpeechValidator.ValidateAndThrowAsync(value); } - public async Task ValidateAndThrowAsync(SemanticDomain value) + public async Task ValidateAndThrow(SemanticDomain value) { await SemanticDomainValidator.ValidateAndThrowAsync(value); }