Skip to content

Commit

Permalink
Rename one overload that was missed earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jan 9, 2025
1 parent 0a39681 commit 7e0e604
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/FwLite/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public IAsyncEnumerable<SemanticDomain> GetSemanticDomains()

public async Task<SemanticDomain> 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",
Expand Down Expand Up @@ -360,7 +360,7 @@ public Task<SemanticDomain> UpdateSemanticDomain(Guid id, UpdateObjectInput<Sema

public async Task<SemanticDomain> 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}");
}
Expand Down
2 changes: 1 addition & 1 deletion backend/FwLite/MiniLcm/Validators/MiniLcmValidators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7e0e604

Please sign in to comment.