website refactor
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
* - dismissed: Protest was dismissed (no action taken)
|
||||
* - withdrawn: Protesting driver withdrew the protest
|
||||
*/
|
||||
import type { Entity } from '@core/shared/domain/Entity';
|
||||
import { Entity } from '@core/shared/domain/Entity';
|
||||
import { RacingDomainInvariantError, RacingDomainValidationError } from '../errors/RacingDomainError';
|
||||
import { DecisionNotes } from './DecisionNotes';
|
||||
import { DefenseRequestedAt } from './DefenseRequestedAt';
|
||||
@@ -58,8 +58,9 @@ export interface ProtestProps {
|
||||
defenseRequestedBy?: StewardId;
|
||||
}
|
||||
|
||||
export class Protest implements Entity<string> {
|
||||
private constructor(private readonly props: ProtestProps) {}
|
||||
export class Protest extends Entity<string> {
|
||||
private constructor(private readonly props: ProtestProps) {
|
||||
super(props.id);}
|
||||
|
||||
static create(props: {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user