mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-13 17:11:49 +00:00
fix: devWeb - players creates two time in db
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user