mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Cleanup, Added string and repeat limit fixes from 1.9 branch
This commit is contained in:
@@ -343,7 +343,7 @@ where ((guildid >> 22) % {_creds.TotalShards}) == {_client.ShardId};")
|
||||
|
||||
using var uow = _db.GetDbContext();
|
||||
|
||||
if (await uow.Repeaters.AsNoTracking().CountAsyncEF() < MAX_REPEATERS)
|
||||
if (await uow.Repeaters.AsNoTracking().CountAsyncEF(x => x.GuildId == guildId) < MAX_REPEATERS)
|
||||
uow.Repeaters.Add(rep);
|
||||
else
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user