diff --git a/PluralKit.Bot/Services/LoggerCleanService.cs b/PluralKit.Bot/Services/LoggerCleanService.cs index c1bdaecf..9b8ecd97 100644 --- a/PluralKit.Bot/Services/LoggerCleanService.cs +++ b/PluralKit.Bot/Services/LoggerCleanService.cs @@ -89,7 +89,7 @@ namespace PluralKit.Bot using var conn = await _db.Obtain(); var mid = await conn.QuerySingleOrDefaultAsync( - "select mid from messages where sender = @User and mid > @ApproxID and guild = @Guild", + "select mid from messages where sender = @User and mid > @ApproxID and guild = @Guild limit 1", new { fuzzy.Value.User,