Skip to content

Commit

Permalink
Merge pull request #106 from wireapp/fix-qualifiedid-deserialization
Browse files Browse the repository at this point in the history
fix(qualified-id-deserialization) Fix wrong json field in QualifiedId
  • Loading branch information
marcoconti83 authored Sep 30, 2024
2 parents 73d55d6 + fe16189 commit f5960fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.wire</groupId>
<artifactId>xenon</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>

<name>Xenon</name>
<description>Base Wire Bots Library</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Deserializer() {
public QualifiedId deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {
JsonNode node = jp.getCodec().readTree(jp);
if (node.has("id") && node.has("domain")) {
UUID id = UUID.fromString(node.get("name").asText());
UUID id = UUID.fromString(node.get("id").asText());
String domain = node.get("domain").asText();
return new QualifiedId(id, domain);
} else if (node.isTextual()) {
Expand Down

0 comments on commit f5960fa

Please sign in to comment.