Skip to content

Commit

Permalink
Hotfix: Allow pets to be purchased from shops again
Browse files Browse the repository at this point in the history
Variant_id needs to be set to null (or "none") if it's not set otherwise it errors when purchasing from shops
  • Loading branch information
preimpression authored Nov 16, 2023
1 parent 77eb3ea commit 5ac0ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/PetManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ public function editCustomImageDescription($pet, $data) {
*
* @return bool
*/
public function creditPet($sender, $recipient, $type, $data, $pet, $quantity, $variant_id) {
public function creditPet($sender, $recipient, $type, $data, $pet, $quantity, $variant_id = null) {
DB::beginTransaction();

try {
Expand Down

0 comments on commit 5ac0ad2

Please sign in to comment.