Skip to content

Commit

Permalink
chore: fix fn names
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeadi committed Oct 4, 2024
1 parent 1ce060d commit 7c9a154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/getstream/core/models/Reaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public Map<String, Object> getModeration() {
return moderation;
}

public ModerationResponse getModerationResponseFromMap()throws Exception {
public ModerationResponse getModerationResponse()throws Exception {
String key = "response";
if (moderation != null && moderation.containsKey(key)) {
return convert(moderation.get(key), ModerationResponse.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void testActivityModeratedReactions() throws Exception {
build();

Reaction reactionResponse = client.reactions().add("user", r).join();
ModerationResponse m=reactionResponse.getModerationResponseFromMap();
ModerationResponse m=reactionResponse.getModerationResponse();
assertEquals(m.getStatus(), "complete");
assertEquals(m.getRecommendedAction(), "remove");
}
Expand Down

0 comments on commit 7c9a154

Please sign in to comment.