Fix user detection query
This commit is contained in:
parent
ebcd2a898d
commit
471697b4ae
1 changed files with 1 additions and 1 deletions
|
@ -68,6 +68,6 @@ interface ServerDatabaseDao {
|
|||
@Query("update servers set currentUserId = :userId where id = :serverId")
|
||||
fun updateServerCurrentUser(serverId: String, userId: UUID)
|
||||
|
||||
@Query("select * from users where id = (select currentUserId from servers where serverId = :serverId)")
|
||||
@Query("select * from users where id = (select currentUserId from servers where id = :serverId)")
|
||||
fun getServerCurrentUser(serverId: String): User?
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue