- Fixed some potential causes for ratelimit due to default message retry settings

- Fixed a patron rewards bug caused by monthly donation checking not accounting for year increase
- Fixed a patron rewards bug for users who connected the same discord account with multiple patreon accounts
This commit is contained in:
Kwoth
2023-01-09 02:05:23 +01:00
parent c869f2e335
commit 9b9fa2f357
19 changed files with 10575 additions and 37 deletions

View File

@@ -431,7 +431,8 @@ public abstract class NadekoContext : DbContext
modelBuilder.Entity<PatronUser>(pu =>
{
pu.HasIndex(x => x.UniquePlatformUserId).IsUnique();
pu.HasKey(x => x.UserId);
pu.HasKey(x => x.Id);
pu.HasIndex(x => x.UserId).IsUnique(false);
});
// quotes are per user id