website refactor
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* Contains base image and sponsor decal placements.
|
||||
*/
|
||||
|
||||
import type { Entity } from '@core/shared/domain/Entity';
|
||||
import { Entity } from '@core/shared/domain/Entity';
|
||||
import { RacingDomainInvariantError, RacingDomainValidationError } from '../errors/RacingDomainError';
|
||||
import { CarId } from '../value-objects/CarId';
|
||||
import type { LiveryDecal } from '../value-objects/LiveryDecal';
|
||||
@@ -16,8 +16,7 @@ import { LiveryTemplateId } from './LiveryTemplateId';
|
||||
import { LiveryTemplateUpdatedAt } from './LiveryTemplateUpdatedAt';
|
||||
import { SeasonId } from './season/SeasonId';
|
||||
|
||||
export class LiveryTemplate implements Entity<LiveryTemplateId> {
|
||||
readonly id: LiveryTemplateId;
|
||||
export class LiveryTemplate extends Entity<LiveryTemplateId> {
|
||||
readonly leagueId: LeagueId;
|
||||
readonly seasonId: SeasonId;
|
||||
readonly carId: CarId;
|
||||
@@ -36,7 +35,8 @@ export class LiveryTemplate implements Entity<LiveryTemplateId> {
|
||||
createdAt: LiveryTemplateCreatedAt;
|
||||
updatedAt?: LiveryTemplateUpdatedAt;
|
||||
}) {
|
||||
this.id = props.id;
|
||||
super(props.id);
|
||||
|
||||
this.leagueId = props.leagueId;
|
||||
this.seasonId = props.seasonId;
|
||||
this.carId = props.carId;
|
||||
|
||||
Reference in New Issue
Block a user