aboutsummaryrefslogtreecommitdiff
path: root/user/level.go
diff options
context:
space:
mode:
Diffstat (limited to 'user/level.go')
-rw-r--r--user/level.go5
1 files changed, 2 insertions, 3 deletions
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))