Add mentor match dashboard section
This commit is contained in:
1 parent
1d8037adf1
commit
741fce0adb
6 files changed
+396
-11
No files matched your search
@@ -135,8 +135,12 @@ export class AnalysisReadService {
|
||||
puuid: mentorMatchesResult.puuid,
|
||||
queueId: mentorMatchesResult.queueId,
|
||||
profileUpdatedAt: mentorMatchesResult.profileUpdatedAt.toISOString(),
|
||||
matches: mentorMatchesResult.matches.map((match) =>
|
||||
this.toMentorMatchDto(match, mentorAccountsByPuuid.get(match.puuid)),
|
||||
matches: mentorMatchesResult.matches.map((match, index) =>
|
||||
this.toMentorMatchDto(
|
||||
match,
|
||||
mentorAccountsByPuuid.get(match.puuid),
|
||||
index,
|
||||
),
|
||||
),
|
||||
};
|
||||
}
|
||||
@@ -224,9 +228,10 @@ export class AnalysisReadService {
|
||||
private toMentorMatchDto(
|
||||
match: MentorMatch,
|
||||
account: MentorAccountRecord | undefined,
|
||||
index: number,
|
||||
): MentorMatchesDto['matches'][number] {
|
||||
return {
|
||||
puuid: match.puuid,
|
||||
mentorDisplayId: `mentor-${index + 1}`,
|
||||
riotId: account
|
||||
? {
|
||||
gameName: account.gameName,
|
||||
|
||||
Reference in new issue
Block a user