[F] Fix spring autowire for AquaNetUser

This commit is contained in:
Azalea
2024-02-17 01:43:52 -05:00
parent a65fa8cf10
commit 32826440cb
3 changed files with 2 additions and 3 deletions

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