Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions CentCom.Server/External/Raw/TgRawBan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public string RawLogsUrl { get; set; }

[JsonPropertyName("round")]
public int Round { get; set; }
public int? Round { get; set; }
}

public class TgRawBan : IRawBan
Expand All @@ -55,7 +55,7 @@
public TgUser Target { get; set; }

[JsonPropertyName("unbanner")]
public TgUser? Unbanner { get; set; }

Check warning on line 58 in CentCom.Server/External/Raw/TgRawBan.cs

View workflow job for this annotation

GitHub Actions / ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

[JsonPropertyName("roles")]
public List<string> Roles { get; set; }
Expand Down Expand Up @@ -98,9 +98,7 @@
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
Expand Down
Loading