fix(db): wrong relation and bad where condition

This commit is contained in:
Anhgelus Morhtuuzh 2025-05-13 16:52:04 +02:00
parent 01bafe9bf1
commit 61c7bf4567
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5
6 changed files with 26 additions and 19 deletions

View file

@ -36,7 +36,7 @@ func main() {
panic(err)
}
err = gokord.DB.AutoMigrate(&user.Copaing{}, &config.GuildConfig{}, &config.XpRole{})
err = gokord.DB.AutoMigrate(&user.Copaing{}, &config.GuildConfig{}, &config.XpRole{}, &user.CopaingXP{})
if err != nil {
panic(err)
}