Fix fuzzy log clean match error with multiple messages

This commit is contained in:
Ske 2020-02-22 20:08:20 +01:00
parent 75947301f1
commit eefbf0630e

View File

@ -89,7 +89,7 @@ namespace PluralKit.Bot
using var conn = await _db.Obtain();
var mid = await conn.QuerySingleOrDefaultAsync<ulong?>(
"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,