Skip to content

Commit

Permalink
fix: 유효성 검증 메서드 오류 해결
Browse files Browse the repository at this point in the history
- 신고자와 비교해야 할 것을 신고 대상자와 비교하는 로직으로 인해 발생한 오류 수정

#245
  • Loading branch information
amaran-th committed Aug 15, 2023
1 parent 0e7dd5f commit f5f54bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private void validateReportRequest(final ReportCreateRequest reportRequest, fina

private void validateReporterMismatch(final ReportCreateRequest reportRequest,
final Member member) {
if (member.isNotMe(reportRequest.getReportedId())) {
if (member.isNotMe(reportRequest.getReporterId())) {
throw new ReportException(ReportExceptionType.REPORTER_MISMATCH);
}
}
Expand Down

0 comments on commit f5f54bc

Please sign in to comment.