website refactor
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { IDomainEvent } from '@core/shared/domain';
|
||||
import type { DomainEvent } from '@core/shared/domain';
|
||||
|
||||
/**
|
||||
* Domain Event: MainRaceCompleted
|
||||
@@ -15,7 +15,7 @@ export interface MainRaceCompletedEventData {
|
||||
driverIds: string[]; // Drivers who participated in the main race
|
||||
}
|
||||
|
||||
export class MainRaceCompletedEvent implements IDomainEvent<MainRaceCompletedEventData> {
|
||||
export class MainRaceCompletedEvent implements DomainEvent<MainRaceCompletedEventData> {
|
||||
readonly eventType = 'MainRaceCompleted';
|
||||
readonly aggregateId: string;
|
||||
readonly eventData: MainRaceCompletedEventData;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { IDomainEvent } from '@core/shared/domain';
|
||||
import type { DomainEvent } from '@core/shared/domain';
|
||||
|
||||
/**
|
||||
* Domain Event: RaceEventStewardingClosed
|
||||
@@ -15,7 +15,7 @@ export interface RaceEventStewardingClosedEventData {
|
||||
hadPenaltiesApplied: boolean; // Whether any penalties were applied during stewarding
|
||||
}
|
||||
|
||||
export class RaceEventStewardingClosedEvent implements IDomainEvent<RaceEventStewardingClosedEventData> {
|
||||
export class RaceEventStewardingClosedEvent implements DomainEvent<RaceEventStewardingClosedEventData> {
|
||||
readonly eventType = 'RaceEventStewardingClosed';
|
||||
readonly aggregateId: string;
|
||||
readonly eventData: RaceEventStewardingClosedEventData;
|
||||
|
||||
Reference in New Issue
Block a user