fix: devWeb - players creates two time in db

This commit is contained in:
kmitresse
2024-05-01 12:27:25 +02:00
parent 496484d5ca
commit 8d6ea2871e
@@ -27,7 +27,6 @@ public class PlayerBean {
dbPlayer.setRightClickCount(player.getRightClickCount()); dbPlayer.setRightClickCount(player.getRightClickCount());
player.getGame().addPlayer(dbPlayer); player.getGame().addPlayer(dbPlayer);
player.getUser().addPlayedGame(dbPlayer); player.getUser().addPlayedGame(dbPlayer);
playerDAO.create(dbPlayer);
em.getTransaction().commit(); em.getTransaction().commit();
return true; return true;
} catch (DAOException e) { } catch (DAOException e) {