Small refactoring of the sessions controller
This commit is contained in:
@@ -15,6 +15,14 @@ object User {
|
||||
}
|
||||
|
||||
case class AuthToken(id: Option[Int], userId: Int, token: String, createdAt: Instant, expiresAt: Instant)
|
||||
object AuthToken {
|
||||
given writes: OWrites[AuthToken] = (a: AuthToken) => Json.obj(
|
||||
"token" -> a.token,
|
||||
"userId" -> a.userId,
|
||||
"createdAt" -> a.createdAt,
|
||||
"expiresAt" -> a.expiresAt
|
||||
)
|
||||
}
|
||||
|
||||
enum AuctionStatus(val value: Short) {
|
||||
case Created extends AuctionStatus(0)
|
||||
|
||||
Reference in New Issue
Block a user