Skip to content

Commit

Permalink
Hotfix: 과릿 1.1.9 (#347)
Browse files Browse the repository at this point in the history
* Hotfix: 과릿 1.1.9 (#342)
  • Loading branch information
dl-00-e8 authored Nov 22, 2023
1 parent 09e7601 commit 2f71a18
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ public List<HomeworkStatisticsRes> getStatisticsList(Long version, Member member
Homework homework = homeworkRepository.findById(homeworkId).orElseThrow(() -> new HomeworkException(ErrorCode.NOT_FOUND_EXCEPTION));
log.info("Homework Id : " + homework.getMemberId());
log.info("Member Id : " + member.getMemberId());
System.out.println(homework.getMemberId() != member.getMemberId());
System.out.println(homework.getMemberId().equals(member.getMemberId()));
log.info("Equal : " + homework.getMemberId().equals(member.getMemberId()));
if(!homework.getMemberId().equals(member.getMemberId())) {
throw new HomeworkException(ErrorCode.UNAUTHORIZED_EXCEPTION);
}
Expand Down

0 comments on commit 2f71a18

Please sign in to comment.