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,
|
||||
|
||||
@@ -494,7 +494,7 @@ describe('AppController (e2e)', () => {
|
||||
profileUpdatedAt: '2026-07-02T00:00:00.000Z',
|
||||
matches: [
|
||||
{
|
||||
puuid: 'mentor-puuid',
|
||||
mentorDisplayId: 'mentor-1',
|
||||
riotId: {
|
||||
gameName: '프리리',
|
||||
tagLine: 'KR1',
|
||||
@@ -525,6 +525,7 @@ describe('AppController (e2e)', () => {
|
||||
},
|
||||
],
|
||||
});
|
||||
expect(responseBody.matches[0]).not.toHaveProperty('puuid');
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
Reference in new issue
Block a user