Add JsonIgnore to TelemetrySubscriptionUpdate.getValues

This commit is contained in:
ViacheslavKlimov 2025-05-30 11:25:42 +03:00
parent ec9c3d5614
commit 752e543c41
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -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);
}
}
}