openvidu-server: CDREventEnd toJson "reason" simplified

pull/419/head
pabloFuente 2020-03-27 16:36:45 +01:00
parent 2e0a963128
commit a7d2232377
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class CDREventEnd extends CDREvent {
json.addProperty("duration", this.duration); json.addProperty("duration", this.duration);
} }
if (this.reason != null) { if (this.reason != null) {
json.addProperty("reason", this.reason != null ? reason.name() : ""); json.addProperty("reason", reason.name());
} }
return json; return json;
} }