diff --git a/src/main/java/io/antmedia/datastore/db/types/Subscriber.java b/src/main/java/io/antmedia/datastore/db/types/Subscriber.java index a52fd8d30..3cadf9efa 100644 --- a/src/main/java/io/antmedia/datastore/db/types/Subscriber.java +++ b/src/main/java/io/antmedia/datastore/db/types/Subscriber.java @@ -2,6 +2,8 @@ import org.bson.types.ObjectId; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonProperty.Access; import dev.morphia.annotations.Entity; import dev.morphia.annotations.Field; @@ -51,7 +53,7 @@ public class Subscriber { /** * Secret code of the Subscriber */ - @JsonIgnore + @JsonProperty(access = Access.WRITE_ONLY) @Schema(description = "Secret code of the subscriber") private String b32Secret;