Improve concurrency
Fix GameState.currentPlayerTurn and nextPlayer Add ItsTheTurnOfNotification Improve test
This commit is contained in:
@@ -22,8 +22,7 @@ class GameStateRepository(
|
||||
val projection = projections[event.gameId]
|
||||
if (projection == null) {
|
||||
event
|
||||
.gameId
|
||||
.buildStateFromEventStream(eventStream)
|
||||
.buildStateFromEventStreamTo(eventStream)
|
||||
.update()
|
||||
} else {
|
||||
projection
|
||||
|
||||
Reference in New Issue
Block a user