Skip to content

Commit 7b1353a

Browse files
committed
fix compilation
1 parent 451c500 commit 7b1353a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Snittlistan.Web/Commands/PublishRosterMailCommandHandler.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected override async Task<UpdateRosterEmail> CreateEmail(HandlerContext<Comm
4343
}
4444
else
4545
{
46-
int? oilPatternId = null;
46+
int oilPatternId = 0;
4747
if (roster.OilPattern is not null)
4848
{
4949
int.TryParse(
@@ -53,11 +53,11 @@ protected override async Task<UpdateRosterEmail> CreateEmail(HandlerContext<Comm
5353

5454
matchHead = new(
5555
"Lag",
56-
roster.Team,
56+
roster.Team ?? "?",
5757
"Motståndare",
58-
roster.Opponent,
59-
roster.Location,
60-
oilPatternId ?? 0,
58+
roster.Opponent ?? "?",
59+
roster.Location ?? "?",
60+
oilPatternId == 0 ? null : oilPatternId,
6161
roster.OilPattern?.Name ?? "Ingen oljeprofil",
6262
roster.Date);
6363
}

0 commit comments

Comments
 (0)