fix issues in core
This commit is contained in:
@@ -49,12 +49,12 @@ export class GetAllTeamsUseCase {
|
||||
const memberCount = await this.teamMembershipRepository.countByTeamId(team.id);
|
||||
return {
|
||||
id: team.id,
|
||||
name: team.name,
|
||||
tag: team.tag,
|
||||
description: team.description,
|
||||
ownerId: team.ownerId,
|
||||
leagues: [...team.leagues],
|
||||
createdAt: team.createdAt,
|
||||
name: team.name.props,
|
||||
tag: team.tag.props,
|
||||
description: team.description.props,
|
||||
ownerId: team.ownerId.toString(),
|
||||
leagues: team.leagues.map(l => l.toString()),
|
||||
createdAt: team.createdAt.toDate(),
|
||||
memberCount,
|
||||
};
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user