Fix optional bool for good

pull/4580/head
sephrat 3 years ago
parent 918f248646
commit de0fe9ffc2

@ -62,7 +62,7 @@ namespace Ombi.Core.Rule.Rules.Search
request.Requested = true;
request.Approved = tvRequests.ChildRequests.Any(x => x.Approved);
request.Denied = tvRequests.ChildRequests.Any(x => x.Denied ?? false);
request.DeniedReason = tvRequests.ChildRequests.FirstOrDefault(x => x.Denied ?? false).DeniedReason;
request.DeniedReason = tvRequests.ChildRequests.FirstOrDefault(x => x.Denied ?? false)?.DeniedReason;
// Let's modify the seasonsrequested to reflect what we have requested...
foreach (var season in request.SeasonRequests)

Loading…
Cancel
Save