Skip to content

Commit

Permalink
fix bulbs color order
Browse files Browse the repository at this point in the history
  • Loading branch information
tom1484 committed Mar 22, 2024
1 parent 105c5b6 commit fe005e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor-server/src/utils/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub async fn init_redis_control(
ON ControlData.effect_id = LEDEffect.id
LEFT JOIN LEDBulb
ON ControlData.id = LEDBulb.control_id
ORDER BY ControlData.frame_id, Dancer.id ASC, Part.id ASC;
ORDER BY ControlData.frame_id, Dancer.id ASC, Part.id ASC, LEDBulb.position ASC;
"#,
)
.fetch_all(mysql_pool)
Expand Down Expand Up @@ -311,7 +311,7 @@ pub async fn update_redis_control(
LEFT JOIN LEDBulb
ON ControlData.id = LEDBulb.control_id
WHERE ControlData.frame_id = ?
ORDER BY Dancer.id ASC, Part.id ASC;
ORDER BY Dancer.id ASC, Part.id ASC, LEDBulb.position ASC;
"#,
frame.id
)
Expand Down

0 comments on commit fe005e3

Please sign in to comment.