mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
- 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:
@@ -27,6 +27,7 @@ public enum FeatureType
|
||||
|
||||
public class PatronUser
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string UniquePlatformUserId { get; set; }
|
||||
public ulong UserId { get; set; }
|
||||
public int AmountCents { get; set; }
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user