Merge pull request 'task/CAS-50/add_rest_blackjack_logic_with_frontend_animations' (!121) from task/CAS-50/add_rest_blackjack_logic_with_frontend_animations into main
All checks were successful
Release / Release (push) Successful in 51s

Reviewed-on: #121
This commit is contained in:
Jan-Marlon Leibl 2025-04-02 11:09:07 +00:00
commit a2f1a40931
Signed by:
GPG key ID: 944223E4D46B7412
8 changed files with 232 additions and 21 deletions

View file

@ -74,10 +74,6 @@ public class BlackJackService {
UserEntity user = getUserWithFreshData(game.getUser());
BigDecimal additionalBet = game.getBet();
if (user.getBalance().compareTo(additionalBet) < 0) {
return game;
}
deductBetFromBalance(user, additionalBet);
game.setBet(game.getBet().add(additionalBet));