Dont purge historical

This commit is contained in:
Daniel Mason 2025-06-27 08:16:38 +12:00
parent 75fc7b9bb4
commit b8bff1540f
Signed by: idanoo
GPG key ID: 387387CDBC02F132

View file

@ -50,7 +50,7 @@ func runScrubber() {
tmpScrub := scrubbers
for guildID, users := range tmpScrub {
for userID, interval := range users {
emojis, err := b.Db.GetAllEmojisForUser(guildID, userID)
emojis, err := b.Db.GetRecentEmojisForUser(guildID, userID, 12)
if err != nil {
slog.Error("Error getting recent emojis for user", "guild_id", guildID, "user_id", userID, "err", err)
continue