Skip to content

Commit

Permalink
Fix failing integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jan 7, 2025
1 parent 20a2fd1 commit c678628
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/FwLite/MiniLcm/SyncHelpers/SenseSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@ public static async Task<int> Sync(Guid entryId,
patchDocument.Operations.AddRange(MultiStringDiff.GetMultiStringDiff<Sense>(nameof(Sense.Definition),
beforeSense.Definition,
afterSense.Definition));
if (beforeSense.PartOfSpeech != afterSense.PartOfSpeech)
{
patchDocument.Replace(sense => sense.PartOfSpeech, afterSense.PartOfSpeech);
}

if (beforeSense.PartOfSpeechId != afterSense.PartOfSpeechId)
{
patchDocument.Replace(sense => sense.PartOfSpeech, afterSense.PartOfSpeech);
patchDocument.Replace(sense => sense.PartOfSpeechId, afterSense.PartOfSpeechId);
}

Expand Down

0 comments on commit c678628

Please sign in to comment.