diff --git a/hwe/sammo/API/Betting/Bet.php b/hwe/sammo/API/Betting/Bet.php index 91005cb5..3102eb89 100644 --- a/hwe/sammo/API/Betting/Bet.php +++ b/hwe/sammo/API/Betting/Bet.php @@ -134,11 +134,7 @@ class Bet extends \sammo\BaseAPI 'amount'=>$amount ]); - $db->insertUpdate( - 'ng_betting', - $bettingItem->toArray(), - ['amount' => $db->sqleval('amount + %i', $amount)] - ); + $db->insertUpdate('ng_betting', $bettingItem->toArray()); if($bettingInfo->reqInheritancePoint){ $inheritStor->setValue('previous', [$remainPoint - $amount, null]); }