Skip to content

Commit

Permalink
fix pp type on new user_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunyoku committed Apr 27, 2024
1 parent b603dcf commit 982e5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ async fn handle_queue_request(
.await?;
}

let old_pp: i32 =
let old_pp: u32 =
sqlx::query_scalar(r#"SELECT pp FROM user_stats WHERE user_id = ? AND mode = ?"#)
.bind(request.user_id)
.bind(rework.mode + (rework.rx * 4))
Expand All @@ -328,7 +328,7 @@ async fn handle_queue_request(
let rework_stats = ReworkStats {
user_id: request.user_id,
rework_id: rework.rework_id,
old_pp,
old_pp: old_pp as i32,
new_pp,
};

Expand Down

0 comments on commit 982e5a3

Please sign in to comment.