aboutsummaryrefslogtreecommitdiff
path: root/xp
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-03-10 21:28:41 +0100
committerAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-03-10 21:28:41 +0100
commit48c9f5ae80b9ec765a9bf5f1096d7158bcfa74ef (patch)
tree72433539887a32198641fe5f72f0642cf896bd94 /xp
parent8e157f56d600fc11b2204f7033e56db7017d5574 (diff)
build(gokord): upgrade to v0.6.1
Diffstat (limited to 'xp')
-rw-r--r--xp/member.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xp/member.go b/xp/member.go
index 2f8d074..c7afc47 100644
--- a/xp/member.go
+++ b/xp/member.go
@@ -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
}