openvidu-server: remove unwanted properties from KmsEvents for REST API

pull/255/head
pabloFuente 2019-03-21 17:42:17 +01:00
parent 43ca0d23b3
commit 3e1fac404b
1 changed files with 3 additions and 0 deletions

View File

@ -503,10 +503,13 @@ public abstract class MediaEndpoint {
JsonArray jsonArray = new JsonArray();
this.kmsEvents.forEach(ev -> {
// Remove unwanted properties
JsonObject j = ev.toJson();
j.remove("session");
j.remove("user");
j.remove("connection");
j.remove("endpoint");
j.remove("timestampMillis");
jsonArray.add(j);
});
json.add("events", jsonArray);