Add a db query to get all the Sessions.
This commit is contained in:
committed by
Benoit Marty
parent
80fdd5f127
commit
b2ce80da69
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user