openvidu-server: remove unwanted properties from KmsEvents for REST API
This commit is contained in:
parent
43ca0d23b3
commit
3e1fac404b
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user