wip
This commit is contained in:
@@ -149,7 +149,7 @@ export function configureDIContainer(): void {
|
||||
|
||||
// Create seed data
|
||||
const seedData = createStaticRacingSeed(42);
|
||||
const primaryDriverId = seedData.drivers[0]?.id ?? 'driver-1';
|
||||
const primaryDriverId = seedData.drivers[0]!.id;
|
||||
|
||||
// Create driver statistics from seed data
|
||||
const driverStats = createDemoDriverStats(seedData.drivers);
|
||||
@@ -556,7 +556,7 @@ export function configureDIContainer(): void {
|
||||
name: t.name,
|
||||
tag: t.tag,
|
||||
description: t.description,
|
||||
ownerId: seedData.drivers[0]?.id ?? 'driver-1',
|
||||
ownerId: seedData.drivers[0]!.id,
|
||||
leagues: [t.primaryLeagueId],
|
||||
createdAt: new Date(),
|
||||
}))
|
||||
@@ -640,13 +640,8 @@ export function configureDIContainer(): void {
|
||||
);
|
||||
|
||||
const sponsorshipPricingRepo = new InMemorySponsorshipPricingRepository();
|
||||
// Seed sponsorship pricings from demo data
|
||||
seedData.sponsorshipPricings?.forEach(pricing => {
|
||||
(sponsorshipPricingRepo as any).pricings.set(
|
||||
`${pricing.entityType}-${pricing.entityId}`,
|
||||
pricing
|
||||
);
|
||||
});
|
||||
// Seed sponsorship pricings from demo data using domain SponsorshipPricing
|
||||
sponsorshipPricingRepo.seed(seedData.sponsorshipPricings ?? []);
|
||||
container.registerInstance<ISponsorshipPricingRepository>(
|
||||
DI_TOKENS.SponsorshipPricingRepository,
|
||||
sponsorshipPricingRepo
|
||||
|
||||
Reference in New Issue
Block a user