Only take amount specified by user in improvement
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -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, _) =
|
||||
|
||||
Reference in new issue
Block a user