Skip to content

Commit

Permalink
EDITOR-NTUEELightDance#525 [SERVER] fix: wrong response in `get_dance…
Browse files Browse the repository at this point in the history
…r_led_data.rs`
  • Loading branch information
ChenBingWei1201 committed Feb 5, 2024
1 parent 1f68383 commit 0f2db8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor-server/src/routes/api/get_dancer_led_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,5 @@ pub async fn get_dancer_led_data(
// return data of form {part_name: {status: [[r, g, b, a], [r, g, b, a]]}, ...}
// index of status array is position of led

Ok((StatusCode::OK, (HeaderMap::new(), Json(response))))
Ok((StatusCode::OK, (headers, Json(response))))
}

0 comments on commit 0f2db8e

Please sign in to comment.