mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Cleanup, Added string and repeat limit fixes from 1.9 branch
This commit is contained in:
@@ -77,17 +77,6 @@ namespace NadekoBot.Db
|
||||
.Sum(x => x.Price);
|
||||
}
|
||||
|
||||
public static int AffinityCount(this DbSet<WaifuUpdate> updates, ulong userId)
|
||||
{
|
||||
return updates
|
||||
.FromSqlInterpolated($@"SELECT 1
|
||||
FROM WaifuUpdates
|
||||
WHERE UserId = (SELECT Id from DiscordUser WHERE UserId={userId}) AND
|
||||
UpdateType = 0 AND
|
||||
NewId IS NOT NULL")
|
||||
.Count();
|
||||
}
|
||||
|
||||
public static ulong GetWaifuUserId(this DbSet<WaifuInfo> waifus, ulong ownerId, string name)
|
||||
{
|
||||
return waifus
|
||||
|
Reference in New Issue
Block a user