mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: normalize sessionId property of json events (from "session" to "sessionId")
parent
8f67cd9d9e
commit
d9df0bb022
|
@ -47,7 +47,7 @@ public class KmsEvent {
|
||||||
json.remove("tags");
|
json.remove("tags");
|
||||||
json.remove("timestampMillis");
|
json.remove("timestampMillis");
|
||||||
json.addProperty("timestamp", timestamp);
|
json.addProperty("timestamp", timestamp);
|
||||||
json.addProperty("session", participant.getSessionId());
|
json.addProperty("sessionId", participant.getSessionId());
|
||||||
json.addProperty("user", participant.getFinalUserId());
|
json.addProperty("user", participant.getFinalUserId());
|
||||||
json.addProperty("connection", participant.getParticipantPublicId());
|
json.addProperty("connection", participant.getParticipantPublicId());
|
||||||
json.addProperty("endpoint", this.endpoint);
|
json.addProperty("endpoint", this.endpoint);
|
||||||
|
|
|
@ -499,7 +499,7 @@ public abstract class MediaEndpoint {
|
||||||
this.kmsEvents.forEach(ev -> {
|
this.kmsEvents.forEach(ev -> {
|
||||||
// Remove unwanted properties
|
// Remove unwanted properties
|
||||||
JsonObject j = ev.toJson();
|
JsonObject j = ev.toJson();
|
||||||
j.remove("session");
|
j.remove("sessionId");
|
||||||
j.remove("user");
|
j.remove("user");
|
||||||
j.remove("connection");
|
j.remove("connection");
|
||||||
j.remove("endpoint");
|
j.remove("endpoint");
|
||||||
|
|
Loading…
Reference in New Issue