Skip to content

Commit

Permalink
hotfix(shops): round up shop purchase quantity (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
AW0005 authored and itinerare committed Feb 11, 2024
1 parent b9aac64 commit 75bc208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Services/ShopManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function buyStock($data, $user)
DB::beginTransaction();

try {
$quantity = $data['quantity'];
$quantity = ceil($data['quantity']);
if(!$quantity || $quantity == 0) throw new \Exception("Invalid quantity selected.");

// Check that the shop exists and is open
Expand Down
2 changes: 1 addition & 1 deletion config/lorekeeper/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
| Do not change this value!
|
*/
'version' => '2.1.3',
'version' => '2.1.4',

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 75bc208

Please sign in to comment.