Skip to content

Commit

Permalink
release: 0.5.0 (#216)
Browse files Browse the repository at this point in the history
* fix: 충돌 해결 (#210)

* fix: 소셜 로그인 에러 긴급 수정 (#214) (#215)

---------

Co-authored-by: ddingmin <[email protected]>
  • Loading branch information
choidongkuen and ddingmin authored Feb 12, 2024
1 parent 06f947e commit be239b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/teumteum/alert/app/AlertHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void handleBeforeMeetingAlerts(BeforeMeetingAlerted alerted) {

@Async(ALERT_EXECUTOR)
@EventListener(EndMeetingAlerted.class)
public void handleEndMeetingAlerts(EndMeetingAlerted alerted) {
public void handleStartMeetingAlerts(EndMeetingAlerted alerted) {
userAlertService.findAllByUserId(alerted.userIds())
.stream()
.map(userAlert -> Pair.of(userAlert.getToken(),
Expand All @@ -64,7 +64,7 @@ private String toCommaString(List<Long> ids) {
for (int i = 0; i < ids.size() - 1; i++) {
stringBuilder.append(ids.get(i)).append(",");
}
stringBuilder.append(ids.get(ids.size() - 1));
stringBuilder.append(ids.getLast());
return stringBuilder.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void saveUserAuthentication(User user) {

private String resolveTokenFromRequest(HttpServletRequest request) {
String token = request.getHeader(jwtProperty.getAccess().getHeader());
if (token.toLowerCase().startsWith(jwtProperty.getBearer().toLowerCase())) {
if (StringUtils.hasText(token) && token.toLowerCase().startsWith(jwtProperty.getBearer().toLowerCase())) {
return token.substring(7);
}
return null;
Expand Down

0 comments on commit be239b5

Please sign in to comment.