aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-05-13 16:52:04 +0200
committerAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-05-13 16:52:04 +0200
commit61c7bf4567249da0d13c2f738e56754a2c181c99 (patch)
tree2a4f52d3c3e0b3d6f381882392743d07f65bbb5b /main.go
parent01bafe9bf1de5be4e770b9500480807d4973d8d6 (diff)
fix(db): wrong relation and bad where condition
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index b1f137d..a1fc1af 100644
--- a/main.go
+++ b/main.go
@@ -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)
}