Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SSchulze1989 committed Jan 1, 2025
1 parent 7e8b62c commit e5c5dcc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,59 +22,4 @@ public override async Task<RawEventResultModel> Handle(GetRawResultsFromEventReq
?? throw new ResourceNotFoundException();
return result;
}

private Expression<Func<EventResultEntity, RawEventResultModel>> 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(),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<Unit>;

public class DeleteDropweekOverrideHandler : StandingsHandlerBase<DeleteDropweekOverrideHandler, DeleteDropweekOverrideRequest, Unit>
{
Expand Down

0 comments on commit e5c5dcc

Please sign in to comment.