website refactor
This commit is contained in:
@@ -60,7 +60,7 @@ export interface ProtestProps {
|
||||
|
||||
export class Protest extends Entity<string> {
|
||||
private constructor(private readonly props: ProtestProps) {
|
||||
super(props.id);}
|
||||
super(props.id.toString());}
|
||||
|
||||
static create(props: {
|
||||
id: string;
|
||||
@@ -172,7 +172,6 @@ export class Protest extends Entity<string> {
|
||||
return new Protest(protestProps);
|
||||
}
|
||||
|
||||
get id(): string { return this.props.id.toString(); }
|
||||
get raceId(): string { return this.props.raceId.toString(); }
|
||||
get protestingDriverId(): string { return this.props.protestingDriverId.toString(); }
|
||||
get accusedDriverId(): string { return this.props.accusedDriverId.toString(); }
|
||||
|
||||
Reference in New Issue
Block a user