build(gokord): upgrade to v0.6.1

This commit is contained in:
Anhgelus Morhtuuzh 2025-03-10 21:28:41 +01:00
parent 8e157f56d6
commit 48c9f5ae80
Signed by: anhgelus
GPG key ID: CAD341EFA92DDDE5
4 changed files with 24 additions and 10 deletions

View file

@ -208,7 +208,7 @@ func (c *Copaing) AfterDelete(db *gorm.DB) error {
id := c.ID
dID := c.DiscordID
gID := c.GuildID
utils.NewTimer(48*time.Hour, func(stop chan struct{}) {
utils.NewTimer(48*time.Hour, func(stop chan<- interface{}) {
if err := db.Unscoped().Where("id = ?", id).Delete(c).Error; err != nil {
utils.SendAlert(
"xp/member.go - Removing copaing from database", err.Error(),
@ -216,7 +216,7 @@ func (c *Copaing) AfterDelete(db *gorm.DB) error {
"guild_id", gID,
)
}
stop <- struct{}{}
stop <- true
})
return nil
}