This commit is contained in:
2025-12-12 01:11:36 +01:00
parent ec3ddc3a5c
commit 6a88fe93ab
125 changed files with 1513 additions and 803 deletions

View File

@@ -27,15 +27,14 @@ export class CreateTeamUseCase {
throw new Error('Driver already belongs to a team');
}
const team: Team = {
const team = Team.create({
id: `team-${Date.now()}`,
name,
tag,
description,
ownerId,
leagues,
createdAt: new Date(),
};
});
const createdTeam = await this.teamRepository.create(team);