From e5c5dcc504feea001f86a9a008fcaa3aba632a57 Mon Sep 17 00:00:00 2001 From: Simon Schulze Date: Tue, 31 Dec 2024 13:23:28 +0100 Subject: [PATCH] Fix build errors --- .../Results/GetRawResultsFromEventHandler.cs | 55 ------------------- .../DeleteDropweekOverrideHandler.cs | 2 +- 2 files changed, 1 insertion(+), 56 deletions(-) diff --git a/src/iRLeagueApiCore.Server/Handlers/Results/GetRawResultsFromEventHandler.cs b/src/iRLeagueApiCore.Server/Handlers/Results/GetRawResultsFromEventHandler.cs index 730d90c9..8593ed34 100644 --- a/src/iRLeagueApiCore.Server/Handlers/Results/GetRawResultsFromEventHandler.cs +++ b/src/iRLeagueApiCore.Server/Handlers/Results/GetRawResultsFromEventHandler.cs @@ -22,59 +22,4 @@ public override async Task Handle(GetRawResultsFromEventReq ?? throw new ResourceNotFoundException(); return result; } - - private Expression> MapToRawEventResultModelExpression => result => new() - { - EventId = result.EventId, - SessionResults = result.SessionResults.Select(sessionResult => new RawSessionResultModel() - { - SessionId = sessionResult.SessionId, - ResultRows = sessionResult.ResultRows.Select(row => new RawResultRowModel() - { - StartPosition = row.StartPosition, - FinishPosition = row.FinishPosition, - CarNumber = row.CarNumber, - ClassId = row.ClassId, - Car = row.Car, - CarClass = row.CarClass, - CompletedLaps = row.CompletedLaps, - LeadLaps = row.LeadLaps, - FastLapNr = row.FastLapNr, - Incidents = row.Incidents, - Status = row.Status, - QualifyingTime = row.QualifyingTime, - Interval = row.Interval, - AvgLapTime = row.AvgLapTime, - FastestLapTime = row.FastestLapTime, - PositionChange = row.PositionChange, - IRacingId = row.IRacingId, - SimSessionType = row.SimSessionType, - OldIRating = row.OldIRating, - NewIRating = row.NewIRating, - SeasonStartIRating = row.SeasonStartIRating, - License = row.License, - OldSafetyRating = row.OldSafetyRating, - NewSafetyRating = row.NewSafetyRating, - OldCpi = row.OldCpi, - NewCpi = row.NewCpi, - ClubId = row.ClubId, - ClubName = row.ClubName, - CarId = row.CarId, - CompletedPct = row.CompletedPct, - QualifyingTimeAt = row.QualifyingTimeAt, - Division = row.Division, - OldLicenseLevel = row.OldLicenseLevel, - NewLicenseLevel = row.NewLicenseLevel, - NumPitStops = row.NumPitStops, - PittedLaps = row.PittedLaps, - NumOfftrackLaps = row.NumOfftrackLaps, - OfftrackLaps = row.OfftrackLaps, - NumContactLaps = row.NumContactLaps, - ContactLaps = row.ContactLaps, - RacePoints = row.RacePoints, - TeamId = row.TeamId, - PointsEligible = row.PointsEligible, - }).ToList(), - }).ToList(), - }; } diff --git a/src/iRLeagueApiCore.Server/Handlers/Standings/DeleteDropweekOverrideHandler.cs b/src/iRLeagueApiCore.Server/Handlers/Standings/DeleteDropweekOverrideHandler.cs index 16dab0ca..b4582969 100644 --- a/src/iRLeagueApiCore.Server/Handlers/Standings/DeleteDropweekOverrideHandler.cs +++ b/src/iRLeagueApiCore.Server/Handlers/Standings/DeleteDropweekOverrideHandler.cs @@ -2,7 +2,7 @@ namespace iRLeagueApiCore.Server.Handlers.Standings; -public record DeleteDropweekOverrideRequest(long StandingConfigId, long ScoredResultRowId) : IRequest; +public record DeleteDropweekOverrideRequest(long StandingConfigId, long ScoredResultRowId) : IRequest; public class DeleteDropweekOverrideHandler : StandingsHandlerBase {