Skip to content

Commit 56fe8bc

Browse files
committed
fix "items"
1 parent 3b4eaa9 commit 56fe8bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

central/src/routes/websockets.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ impl WsState {
193193
serde_json::to_value(r).map_err(WsHandleError::Serialization)?
194194
}
195195
WsMessageData::ValidateResponse(r) => {
196-
serde_json::to_value(r).map_err(WsHandleError::Serialization)?
196+
serde_json::to_value(&r.items).map_err(WsHandleError::Serialization)?
197197
}
198198
WsMessageData::ValidateStrongResponse(r) => {
199-
serde_json::to_value(r).map_err(WsHandleError::Serialization)?
199+
serde_json::to_value(&r.items).map_err(WsHandleError::Serialization)?
200200
}
201201
WsMessageData::ValidateCheckDataManyResponse(r) => {
202-
serde_json::to_value(r).map_err(WsHandleError::Serialization)?
202+
serde_json::to_value(&r.items).map_err(WsHandleError::Serialization)?
203203
}
204204
};
205205

0 commit comments

Comments
 (0)