fix: dapper doesn't play nice with List<T>
This commit is contained in:
parent
64b4c26d93
commit
da4dfae27c
4 changed files with 31 additions and 6 deletions
|
|
@ -27,8 +27,8 @@ public class Guild
|
|||
|
||||
[Column(TypeName = "jsonb")]
|
||||
public ChannelConfig Channels { get; init; } = new();
|
||||
public List<string> BannedSystems { get; init; } = [];
|
||||
public List<ulong> KeyRoles { get; init; } = [];
|
||||
public string[] BannedSystems { get; set; } = [];
|
||||
public ulong[] KeyRoles { get; set; } = [];
|
||||
|
||||
public bool IsSystemBanned(PluralkitApiService.PkSystem system) =>
|
||||
BannedSystems.Contains(system.Id) || BannedSystems.Contains(system.Uuid.ToString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue