Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/domain/match/controller/match.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ export class MatchController {
return ResponseDto.ok(results);
}

@ApiOperation({ summary: '알림창 조회', description: '알림창 보관함에서 알림을 리스트로 가져옵니다.'})
@Get()
@UseGuards(JwtAuthGuard)
async getMyMatchingResults(@Req() req): Promise<ResponseDto<any>> {
const userId = req.user.id;
const results = await this.matchService.getHighSimilarityFindersForProtector(userId);
const results = await this.matchService.getSimilarities(userId);
return ResponseDto.ok(results);
}

Expand Down
2 changes: 1 addition & 1 deletion src/domain/match/match.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class MatchService {
}


async getHighSimilarityFindersForProtector(
async getSimilarities(
userId: number,
): Promise<{ finderId: number; message: string; presigned_url: string }[]> {
// 1. 보호자가 작성한 feed 목록 조회
Expand Down