fix(gorm): not handling interface in type
This commit is contained in:
parent
b9888e50ac
commit
460e2ee881
3 changed files with 1 additions and 4 deletions
|
@ -9,7 +9,6 @@ import (
|
|||
|
||||
type GuildConfig struct {
|
||||
gorm.Model
|
||||
gokord.DataBase
|
||||
GuildID string `gorm:"not null"`
|
||||
XpRoles []XpRole
|
||||
DisabledChannels string
|
||||
|
|
2
main.go
2
main.go
|
@ -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() {
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue