Only take amount specified by user in improvement
This commit is contained in:
parent
d03f33ea6d
commit
68711f9ee6
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1093,7 +1093,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "fren"
|
||||
version = "2.6.0"
|
||||
version = "2.6.1"
|
||||
dependencies = [
|
||||
"axum 0.8.1",
|
||||
"base64 0.22.1",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "fren"
|
||||
version = "2.6.0"
|
||||
version = "2.6.1"
|
||||
edition = "2024"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@ -78,7 +78,7 @@ pub async fn buy_improvement(
|
||||
User::try_take_funds(
|
||||
&ctx.data().db,
|
||||
ctx.author().id,
|
||||
improvement_type.price() as u32,
|
||||
amount,
|
||||
)?;
|
||||
|
||||
let (has_improved, _) =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user