Fix error.

This commit is contained in:
Benoit Marty 2025-09-01 16:41:12 +02:00
parent a00623e490
commit a3fa1744b2

View file

@ -54,7 +54,7 @@ class InMemorySessionStore(
} }
override suspend fun getSession(sessionId: String): SessionData? { override suspend fun getSession(sessionId: String): SessionData? {
return sessionDataListFlow.value.first { it.userId == sessionId } return sessionDataListFlow.value.firstOrNull { it.userId == sessionId }
} }
override suspend fun getAllSessions(): List<SessionData> { override suspend fun getAllSessions(): List<SessionData> {