fix: dapper doesn't play nice with List<T>

This commit is contained in:
sam 2024-10-27 23:43:07 +01:00
parent 64b4c26d93
commit da4dfae27c
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
4 changed files with 31 additions and 6 deletions

View file

@ -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());