[F] Fix spring autowire for AquaNetUser

pull/14/head
Azalea 2024-02-17 01:43:52 -05:00
parent a65fa8cf10
commit 32826440cb
3 changed files with 2 additions and 3 deletions

View File

@ -55,6 +55,7 @@ dependencies {
implementation("io.ktor:ktor-client-cio:2.3.8")
implementation("io.ktor:ktor-client-content-negotiation:2.3.8")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.8")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.9.22")
}
group = "icu.samnya"

View File

@ -5,8 +5,6 @@ import icu.samnyan.aqua.net.db.AquaNetUser
import icu.samnyan.aqua.net.db.AquaNetUserRepo
import icu.samnyan.aqua.net.utils.TurnstileService
import jakarta.servlet.http.HttpServletRequest
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.springframework.security.crypto.password.PasswordEncoder
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping

View File

@ -32,7 +32,7 @@ class AquaNetUser(
var profileBio: String = "",
// One user can have multiple cards
@OneToMany(mappedBy = "aquaNetUser", cascade = [CascadeType.ALL])
@OneToMany(mappedBy = "aquaUser", cascade = [CascadeType.ALL])
var cards: MutableList<Card> = mutableListOf()
) : Serializable