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 {
|
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
|
||||||
|
|
2
main.go
2
main.go
|
@ -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() {
|
||||||
|
|
|
@ -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"`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue