Skip to content

Commit

Permalink
fix: validateOverlapPlayground 논리 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ehtjsv2 committed Oct 8, 2024
1 parent bcb4a2c commit 2ba707b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private void validateOverlapPlayground(double latitude, double longitude) {

boolean isExistWithinRadius = playgrounds.stream()
.anyMatch(playground -> location.isWithin(playground.getLocation(),
PLAYGROUND_RADIUS));
MAX_NON_OVERLAP_DISTANCE));

if (isExistWithinRadius) {
throw new FriendoglyException("생성할 놀이터 범위내에 겹치는 다른 놀이터 범위가 있습니다.");
Expand Down

0 comments on commit 2ba707b

Please sign in to comment.