Add a db query to get all the Sessions.
This commit is contained in:
parent
2135d75712
commit
70de1bd6a0
5 changed files with 16 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue