auth giving out actual random seesionId

This commit is contained in:
efim 2023-04-28 10:11:36 +04:00
parent 62d63546c4
commit 867b2f0f20
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ object Auth {
override def joinRoom(roomId: RoomID, playerId: PlayerID): F[ResponseCookie] = {
// TODO check for existing session for same room
// and do i want to logout if existing session for another room? ugh
// newSessionId = Random.nextLong() // TODO return after i stop mocking RoomService
val newSessionId = TestModels.testSessionId
val newSessionId = Random.nextLong()
sessions
.update(_.updated(newSessionId, (roomId, playerId)))
.as(