Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
easy-do committed Oct 22, 2024
1 parent 452bf8c commit 483aa89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust-src/service/src/manager/live_prize_history_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ pub async fn draw_history(db: &DbConn) -> Result<Vec<live_prize_history::DrawHis
.column(live_prize_history::Column::PrizeIds)
.column(live_prize_history::Column::PrizeItems)
.column(user::Column::UserName)
.order_by(live_prize_history::Column::CreateTime, Order::Desc)
.order_by(live_prize_history::Column::CreateTime, Order::Asc)
.into_model::<live_prize_history::DrawHistory>()
.paginate(db, 50).fetch_page(0).await?;
.paginate(db, 50).fetch_page(1).await?;
let mut result = Vec::new();
for history in list {
let prize_items = history.prize_items.clone();
Expand Down

0 comments on commit 483aa89

Please sign in to comment.