diff options
author | Vitaly Takmazov | 2019-02-23 22:52:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-02-23 22:52:45 +0300 |
commit | 32a92d0a8d3c99c3df4abf0aad147f868fd36775 (patch) | |
tree | cde8f4fa2135d9ff7efd95b5c0ab0adc46812fd5 /src/main/java/com | |
parent | 0682e5c1a3f71c3bbb23ac646d2a4e54a472ac06 (diff) |
Fix activity id deserializer
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/juick/server/api/activity/helpers/ActivityIdDeserializer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/server/api/activity/helpers/ActivityIdDeserializer.java b/src/main/java/com/juick/server/api/activity/helpers/ActivityIdDeserializer.java index de43dd5c..ba8cfb87 100644 --- a/src/main/java/com/juick/server/api/activity/helpers/ActivityIdDeserializer.java +++ b/src/main/java/com/juick/server/api/activity/helpers/ActivityIdDeserializer.java @@ -13,7 +13,7 @@ public class ActivityIdDeserializer extends JsonDeserializer<String> { @Override public String deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonToken jsonToken = p.getCurrentToken(); - if (jsonToken == JsonToken.VALUE_EMBEDDED_OBJECT) { + if (jsonToken == JsonToken.START_OBJECT) { JsonNode node = p.getCodec().readTree(p); return node.get("id").textValue(); } |