code quality
Some checks failed
CI / lint-typecheck (pull_request) Failing after 1m29s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
Some checks failed
CI / lint-typecheck (pull_request) Failing after 1m29s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
This commit is contained in:
@@ -9,8 +9,6 @@ import { CalculateRatingUseCase } from './CalculateRatingUseCase';
|
||||
import { Driver } from '../../../racing/domain/entities/Driver';
|
||||
import { Race } from '../../../racing/domain/entities/Race';
|
||||
import { Result } from '../../../racing/domain/entities/result/Result';
|
||||
import { Rating } from '../../domain/Rating';
|
||||
import { RatingCalculatedEvent } from '../../domain/events/RatingCalculatedEvent';
|
||||
|
||||
// Mock repositories and publisher
|
||||
const mockDriverRepository = {
|
||||
|
||||
@@ -40,10 +40,6 @@ export class GetRatingLeaderboardUseCase {
|
||||
const { limit = 50, offset = 0 } = request;
|
||||
|
||||
try {
|
||||
// Get all ratings
|
||||
const allRatings: Rating[] = [];
|
||||
const driverIds = new Set<string>();
|
||||
|
||||
// Group ratings by driver and get latest rating for each driver
|
||||
const driverRatings = new Map<string, Rating>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user