Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce0203 committed Aug 6, 2023
1 parent 8c940cf commit ce12de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/kotlin/model/Sessions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ fun getPlayerUUIDBySession(session: UUID) = transaction {

fun logout(sessionUUID: UUID) = transaction {
val session = Session.find { Sessions.id eq sessionUUID }.first()
OnlinePlayers.deleteWhere { OnlinePlayers.id eq session.player.value }
OnlinePlayers.deleteWhere { OnlinePlayers.id eq session.player }
}

0 comments on commit ce12de7

Please sign in to comment.