Skip to content

Commit

Permalink
[#130] fix: maxNumber = 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mmihye committed Jan 17, 2024
1 parent e421c0a commit eccd169
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void createTimer(Long userId, CreateTimerRequestDto createTimerRequestDto

int timerNum = timerRepository.findAllByUser(presentUser).size();

if(timerNum>MaxTimerNumber){
if(timerNum>=MaxTimerNumber){
throw new CustomException(Error.BAD_REQUEST_CREATE_TIMER_EXCEPTION, Error.BAD_REQUEST_CREATE_TIMER_EXCEPTION.getMessage());
}

Expand Down

0 comments on commit eccd169

Please sign in to comment.