Skip to content

Commit

Permalink
Fix renames that the code rename somehow missed
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jan 9, 2025
1 parent 913400a commit 9e4e4f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/FwLite/LcmCrdt/CrdtMiniLcmApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public async Task DeletePartOfSpeech(Guid id)

public async Task<MiniLcm.Models.SemanticDomain> CreateSemanticDomain(MiniLcm.Models.SemanticDomain semanticDomain)
{
await validators.ValidateAndThrowAsync(semanticDomain);
await validators.ValidateAndThrow(semanticDomain);
await dataModel.AddChange(ClientId, new CreateSemanticDomainChange(semanticDomain.Id, semanticDomain.Name, semanticDomain.Code, semanticDomain.Predefined));
return await GetSemanticDomain(semanticDomain.Id) ?? throw new NullReferenceException();
}
Expand All @@ -157,7 +157,7 @@ public async Task<SemanticDomain> UpdateSemanticDomain(Guid id, UpdateObjectInpu

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

0 comments on commit 9e4e4f1

Please sign in to comment.