mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: remove timestampMillis from KmsEvent json
parent
6790cb9d48
commit
ff53377925
|
@ -45,6 +45,7 @@ public class KmsEvent {
|
||||||
public JsonObject toJson() {
|
public JsonObject toJson() {
|
||||||
JsonObject json = JsonUtils.toJsonObject(event);
|
JsonObject json = JsonUtils.toJsonObject(event);
|
||||||
json.remove("tags");
|
json.remove("tags");
|
||||||
|
json.remove("timestampMillis");
|
||||||
json.addProperty("timestamp", timestamp);
|
json.addProperty("timestamp", timestamp);
|
||||||
json.addProperty("session", participant.getSessionId());
|
json.addProperty("session", participant.getSessionId());
|
||||||
json.addProperty("user", participant.getFinalUserId());
|
json.addProperty("user", participant.getFinalUserId());
|
||||||
|
@ -53,7 +54,7 @@ public class KmsEvent {
|
||||||
json.addProperty("msSinceEndpointCreation", msSinceCreation);
|
json.addProperty("msSinceEndpointCreation", msSinceCreation);
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getTimestamp() {
|
public long getTimestamp() {
|
||||||
return this.timestamp;
|
return this.timestamp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue