fix(gorm): not handling interface in type

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-18 12:55:08 +02:00
parent b9888e50ac
commit 460e2ee881
No known key found for this signature in database
GPG key ID: CF4550297832A29F
3 changed files with 1 additions and 4 deletions

View file

@ -9,7 +9,6 @@ import (
type GuildConfig struct {
gorm.Model
gokord.DataBase
GuildID string `gorm:"not null"`
XpRoles []XpRole
DisabledChannels string

View file

@ -14,7 +14,7 @@ import (
var token string
const (
Version = "2.2.1" // git version: 0.2.1 (it's the v2 of the bot)
Version = "2.2.2" // git version: 0.2.2 (it's the v2 of the bot)
)
func init() {

View file

@ -16,8 +16,6 @@ import (
type Copaing struct {
gorm.Model
gokord.RedisBase
gokord.DataBase
DiscordID string `gorm:"not null"`
XP uint `gorm:"default:0"`
GuildID string `gorm:"not null"`