From 460e2ee8815be4f809b1df9fd7894f9804ad9c81 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 18 Apr 2024 12:55:08 +0200 Subject: [PATCH] fix(gorm): not handling interface in type --- config/guild.go | 1 - main.go | 2 +- xp/member.go | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/config/guild.go b/config/guild.go index 48ebc96..242cc89 100644 --- a/config/guild.go +++ b/config/guild.go @@ -9,7 +9,6 @@ import ( type GuildConfig struct { gorm.Model - gokord.DataBase GuildID string `gorm:"not null"` XpRoles []XpRole DisabledChannels string diff --git a/main.go b/main.go index 64e9147..5baeab7 100644 --- a/main.go +++ b/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() { diff --git a/xp/member.go b/xp/member.go index 9352a30..639e0d6 100644 --- a/xp/member.go +++ b/xp/member.go @@ -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"`