Skip to content

Commit f9ecfa6

Browse files
committed
매칭 수락 오류 수정
1 parent 6f27e06 commit f9ecfa6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/matching/matching.controller.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { UserService } from 'src/user/user.service';
2323
import { Request } from 'express';
2424
import {
2525
DataNotFoundException,
26-
InternalServerException,
26+
InvalidInputValueException,
2727
UnauthorizedException,
2828
} from 'src/common/exception/service.exception';
2929
import { BaseResponse } from 'src/common/response/dto';
@@ -91,7 +91,7 @@ export class MatchingController {
9191
}
9292

9393
if (matching.requestStatus !== 'pending') {
94-
throw InternalServerException('이미 처리된 요청입니다.');
94+
throw InvalidInputValueException('이미 처리된 요청입니다.');
9595
}
9696

9797
await this.matchingService.patchMatchingRequestStatus(matching, body);

src/matching/matching.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class MatchingService {
138138
async getMatchingById(matchingId: number): Promise<Matching> {
139139
const matching = await this.matchingRepository.findOne({
140140
where: { id: matchingId },
141-
relations: ['target'],
141+
relations: ['target', 'requester'],
142142
});
143143
if (!matching) {
144144
throw DataNotFoundException('해당 매칭 요청을 찾을 수 없습니다.');

0 commit comments

Comments
 (0)