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 { type GuildConfig struct {
gorm.Model gorm.Model
gokord.DataBase
GuildID string `gorm:"not null"` GuildID string `gorm:"not null"`
XpRoles []XpRole XpRoles []XpRole
DisabledChannels string DisabledChannels string

View file

@ -14,7 +14,7 @@ import (
var token string var token string
const ( 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() { func init() {

View file

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