Skip to content

Commit

Permalink
fix: Add missing revisionNumber property to REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-elimu committed Nov 28, 2023
1 parent 8b0ae85 commit 086e078
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/ai/elimu/rest/v2/JpaToGsonConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ public static LetterSoundGson getLetterSoundGson(LetterSoundCorrespondence lette

// BaseEntity
letterSoundGson.setId(letterSound.getId());

// Content
letterSoundGson.setRevisionNumber(letterSound.getRevisionNumber());
letterSoundGson.setUsageCount(letterSound.getUsageCount());

Check warning on line 102 in src/main/java/ai/elimu/rest/v2/JpaToGsonConverter.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/ai/elimu/rest/v2/JpaToGsonConverter.java#L101-L102

Added lines #L101 - L102 were not covered by tests

// LetterSound
List<LetterGson> letters = new ArrayList<>();
Expand All @@ -110,7 +114,6 @@ public static LetterSoundGson getLetterSoundGson(LetterSoundCorrespondence lette
sounds.add(soundGson);
}
letterSoundGson.setSounds(sounds);
letterSoundGson.setUsageCount(letterSound.getUsageCount());

return letterSoundGson;
}
Expand Down

0 comments on commit 086e078

Please sign in to comment.