Add a db query to get all the Sessions.

This commit is contained in:
Benoit Marty
2023-03-29 15:40:34 +02:00
committed by Benoit Marty
parent 80fdd5f127
commit b2ce80da69
5 changed files with 16 additions and 1 deletions

View File

@@ -38,6 +38,10 @@ class InMemorySessionStore : SessionStore {
return sessionDataFlow.value.takeIf { it?.userId == sessionId }
}
override suspend fun getAllSessions(): List<SessionData> {
return listOfNotNull(sessionDataFlow.value)
}
override suspend fun getLatestSession(): SessionData? {
return sessionDataFlow.value
}