Skip to content

Commit

Permalink
Update exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuznik committed Nov 22, 2024
1 parent fac8002 commit 54fa27d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void sendSMS(String alertDescription, String phoneNumber) {

smsLimitService.increaseLimit(today);
} else {
throw new RuntimeException("Day SMS limit reached");
throw new RuntimeException("Daily SMS limit reached - notifications will be sent via email only.");
}
}
}
Expand Down Expand Up @@ -97,7 +97,7 @@ boolean isBelowLimit(LocalDateTime date) {

Optional<SMSLimit> byExactDay = smsLimitRepository.findByExactDay(date);
if(byExactDay.isPresent()){
result = byExactDay.get().getLimitCounter() < 5;
result = byExactDay.get().getLimitCounter() < 2;
} else {
createLimiter();
}
Expand Down

0 comments on commit 54fa27d

Please sign in to comment.