From acd65d193ce1b21a98c14bbac2f1c59991c47dde Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 31 Jan 2025 00:02:38 -0400 Subject: [PATCH 1/2] ok but this time itll actually work --- CentCom.Server/External/Raw/TgRawBan.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CentCom.Server/External/Raw/TgRawBan.cs b/CentCom.Server/External/Raw/TgRawBan.cs index a6eee0e..160491c 100644 --- a/CentCom.Server/External/Raw/TgRawBan.cs +++ b/CentCom.Server/External/Raw/TgRawBan.cs @@ -40,7 +40,7 @@ public class TgServer public string RawLogsUrl { get; set; } [JsonPropertyName("round")] - public int Round { get; set; } + public int? Round { get; set; } } public class TgRawBan : IRawBan From 5d1beb0da52f8e5a6018da0d8df562672f2ed45f Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 31 Jan 2025 00:05:01 -0400 Subject: [PATCH 2/2] ok but clean this up too what the heckk --- CentCom.Server/External/Raw/TgRawBan.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CentCom.Server/External/Raw/TgRawBan.cs b/CentCom.Server/External/Raw/TgRawBan.cs index 160491c..aa4fb4f 100644 --- a/CentCom.Server/External/Raw/TgRawBan.cs +++ b/CentCom.Server/External/Raw/TgRawBan.cs @@ -98,9 +98,7 @@ public Ban AsBan(BanSource source) Reason = Reason, Expires = Expiration?.UtcDateTime, UnbannedBy = Unbanner?.CKey, - BanID = string.Join(";", BanIds), - JobBans = null, - BanAttributes = (BanAttribute)0 + BanID = string.Join(";", BanIds) }; // Add job bans if relevant