Skip to content

Commit

Permalink
Removed the duplication of Ttl fields in /Infromation RestApi (#476)
Browse files Browse the repository at this point in the history
Removed the duplication of ttl fields
  • Loading branch information
sudharshan-bandaru authored Sep 24, 2020
1 parent 215e8b3 commit bdca122
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/ericsson/ei/handlers/ObjectHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.ericsson.ei.jmespath.JmesPathInterface;
import com.ericsson.ei.rules.RulesObject;
import com.ericsson.ei.subscription.SubscriptionHandler;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
Expand Down Expand Up @@ -254,6 +255,7 @@ public String lockDocument(String id) {
* @return ttl
* Integer value representing time to live for documents
* */
@JsonIgnore
public int getTtl() {
int ttl = 0;
if (ttlValue != null && !ttlValue.isEmpty()) {
Expand Down

0 comments on commit bdca122

Please sign in to comment.