Skip to content

Commit

Permalink
Minor stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Nov 26, 2023
1 parent 72063a9 commit 066d59c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ data class IceSessionEntity(

) : PanacheEntityBase

private val LOG = LoggerFactory.getLogger(IceSessionRepository::class.java)

@Singleton
class IceSessionRepository : PanacheRepository<IceSessionEntity> {

companion object {
val LOG = LoggerFactory.getLogger(IceSessionRepository::class.java)
}

fun findByGameId(gameId: Long) =
find("gameId = ?1", gameId).firstResult()

Expand All @@ -55,7 +53,7 @@ class IceSessionRepository : PanacheRepository<IceSessionEntity> {
when (lockReleased) {
null -> LOG.warn("No lock exists for $gameId")
false -> LOG.warn("Not owner of lock for $gameId")
true -> LOG.debug("lock released for $gameId")
true -> LOG.debug("Lock released for $gameId")
}
}
}

0 comments on commit 066d59c

Please sign in to comment.