From ddd6306752186c149f8ad3bf2f59b5428cf01296 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 8 Mar 2026 13:38:10 +0100 Subject: feat(db): run migrations --- user/level.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'user/level.go') diff --git a/user/level.go b/user/level.go index 98b9329..012f253 100644 --- a/user/level.go +++ b/user/level.go @@ -6,7 +6,6 @@ import ( "sync" "time" - "git.anhgelus.world/anhgelus/les-copaings-bot/common" "git.anhgelus.world/anhgelus/les-copaings-bot/config" "git.anhgelus.world/anhgelus/les-copaings-bot/exp" "github.com/nyttikord/gokord/bot" @@ -60,7 +59,7 @@ func PeriodicReducer(ctx context.Context, dg bot.Session) { n := 0 var wg sync.WaitGroup for _, g := range dg.GuildState().ListGuilds() { - cfg := config.GetGuildConfig(ctx, g) + /*cfg := config.GetGuildConfig(ctx, g) res := common.GetDB(ctx). Model(&CopaingXP{}). Where("guild_id = ? and created_at < ?", g, exp.TimeStampNDaysBefore(ctx, cfg.DaysXPRemains)). @@ -70,7 +69,7 @@ func PeriodicReducer(ctx context.Context, dg bot.Session) { continue } n++ - log.Debug("guild cleaned", "guild", g, "rows affected", res.RowsAffected) + log.Debug("guild cleaned", "guild", g, "rows affected", res.RowsAffected)*/ wg.Go(func() { syncCopaings(ctx, dg, state.Copaings(g)) -- cgit v1.2.3