stream_topic_history_util: Use `raw_data` and `data` more.

Prefer using `raw_data` and `data` instead of
`data` and `clean_data`.
This commit is contained in:
Varun Singh 2024-06-21 23:56:02 +05:30 committed by Tim Abbott
parent 3d64fb6cda
commit f2c3207538
1 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,9 @@ export function get_server_history(stream_id: number, on_success: () => void): v
void channel.get({
url,
data: {},
success(data) {
const clean_data = stream_topic_history_response_schema.parse(data);
const server_history = clean_data.topics;
success(raw_data) {
const data = stream_topic_history_response_schema.parse(raw_data);
const server_history = data.topics;
stream_topic_history.add_history(stream_id, server_history);
stream_topic_history.remove_request_pending_for(stream_id);
on_success();