Add JsonIgnore to TelemetrySubscriptionUpdate.getValues
This commit is contained in:
parent
ec9c3d5614
commit
752e543c41
@ -15,6 +15,7 @@
|
||||
*/
|
||||
package org.thingsboard.server.service.ws.telemetry.sub;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.With;
|
||||
@ -73,6 +74,7 @@ public class TelemetrySubscriptionUpdate {
|
||||
this.errorMsg = errorMsg != null ? errorMsg : errorCode.getDefaultMsg();
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public Map<String, List<TsValue>> getValues() {
|
||||
if (data == null || data.isEmpty()) {
|
||||
return Collections.emptyMap();
|
||||
|
||||
@ -61,7 +61,7 @@ public class WsClient extends WebSocketClient {
|
||||
latch.countDown();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
log.error("ws message can't be read");
|
||||
log.error("ws message can't be read", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user