openvidu-server: normalize sessionId property of json events (from "session" to "sessionId")

pull/375/head
pabloFuente 2019-09-05 17:22:46 +02:00
parent 8f67cd9d9e
commit d9df0bb022
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class KmsEvent {
json.remove("tags");
json.remove("timestampMillis");
json.addProperty("timestamp", timestamp);
json.addProperty("session", participant.getSessionId());
json.addProperty("sessionId", participant.getSessionId());
json.addProperty("user", participant.getFinalUserId());
json.addProperty("connection", participant.getParticipantPublicId());
json.addProperty("endpoint", this.endpoint);

View File

@ -499,7 +499,7 @@ public abstract class MediaEndpoint {
this.kmsEvents.forEach(ev -> {
// Remove unwanted properties
JsonObject j = ev.toJson();
j.remove("session");
j.remove("sessionId");
j.remove("user");
j.remove("connection");
j.remove("endpoint");