seed data
This commit is contained in:
@@ -96,6 +96,7 @@ export class League implements IEntity<LeagueId> {
|
||||
readonly description: LeagueDescription;
|
||||
readonly ownerId: LeagueOwnerId;
|
||||
readonly settings: LeagueSettings;
|
||||
readonly category?: string | undefined;
|
||||
readonly createdAt: LeagueCreatedAt;
|
||||
readonly socialLinks: LeagueSocialLinks | undefined;
|
||||
|
||||
@@ -109,6 +110,7 @@ export class League implements IEntity<LeagueId> {
|
||||
description: LeagueDescription;
|
||||
ownerId: LeagueOwnerId;
|
||||
settings: LeagueSettings;
|
||||
category?: string | undefined;
|
||||
createdAt: LeagueCreatedAt;
|
||||
socialLinks?: LeagueSocialLinks;
|
||||
participantCount: ParticipantCount;
|
||||
@@ -119,6 +121,7 @@ export class League implements IEntity<LeagueId> {
|
||||
this.description = props.description;
|
||||
this.ownerId = props.ownerId;
|
||||
this.settings = props.settings;
|
||||
this.category = props.category;
|
||||
this.createdAt = props.createdAt;
|
||||
this.socialLinks = props.socialLinks;
|
||||
this._participantCount = props.participantCount;
|
||||
@@ -135,6 +138,7 @@ export class League implements IEntity<LeagueId> {
|
||||
description: string;
|
||||
ownerId: string;
|
||||
settings?: Partial<LeagueSettings>;
|
||||
category?: string | undefined;
|
||||
createdAt?: Date;
|
||||
socialLinks?: {
|
||||
discordUrl?: string;
|
||||
@@ -245,6 +249,7 @@ export class League implements IEntity<LeagueId> {
|
||||
description,
|
||||
ownerId,
|
||||
settings: finalSettings,
|
||||
category: props.category,
|
||||
createdAt,
|
||||
...(socialLinks !== undefined ? { socialLinks } : {}),
|
||||
participantCount,
|
||||
@@ -258,6 +263,7 @@ export class League implements IEntity<LeagueId> {
|
||||
description: string;
|
||||
ownerId: string;
|
||||
settings: LeagueSettings;
|
||||
category?: string | undefined;
|
||||
createdAt: Date;
|
||||
participantCount: number;
|
||||
socialLinks?: {
|
||||
@@ -286,6 +292,7 @@ export class League implements IEntity<LeagueId> {
|
||||
description,
|
||||
ownerId,
|
||||
settings: props.settings,
|
||||
category: props.category,
|
||||
createdAt,
|
||||
...(socialLinks !== undefined ? { socialLinks } : {}),
|
||||
participantCount,
|
||||
@@ -343,6 +350,7 @@ export class League implements IEntity<LeagueId> {
|
||||
description: string;
|
||||
ownerId: string;
|
||||
settings: LeagueSettings;
|
||||
category?: string | undefined;
|
||||
socialLinks?: {
|
||||
discordUrl?: string;
|
||||
youtubeUrl?: string;
|
||||
@@ -414,6 +422,7 @@ export class League implements IEntity<LeagueId> {
|
||||
description,
|
||||
ownerId,
|
||||
settings: newSettings,
|
||||
category: props.category ?? this.category,
|
||||
createdAt: this.createdAt,
|
||||
...(socialLinks !== undefined ? { socialLinks } : {}),
|
||||
participantCount: this._participantCount,
|
||||
@@ -447,6 +456,7 @@ export class League implements IEntity<LeagueId> {
|
||||
description: this.description,
|
||||
ownerId: this.ownerId,
|
||||
settings: this.settings,
|
||||
category: this.category,
|
||||
createdAt: this.createdAt,
|
||||
...(this.socialLinks !== undefined ? { socialLinks: this.socialLinks } : {}),
|
||||
participantCount: newCount,
|
||||
@@ -470,6 +480,7 @@ export class League implements IEntity<LeagueId> {
|
||||
description: this.description,
|
||||
ownerId: this.ownerId,
|
||||
settings: this.settings,
|
||||
category: this.category,
|
||||
createdAt: this.createdAt,
|
||||
...(this.socialLinks !== undefined ? { socialLinks: this.socialLinks } : {}),
|
||||
participantCount: newCount,
|
||||
|
||||
Reference in New Issue
Block a user