Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public PlatformUserInfoResponse getPlatformUserInfoResponse(Long userId) {
public List<PlatformUserInfoResponse> getPlatformUserInfosResponse(List<Long> userIds) {
final Map<String, String> headers = createAuthorizationHeader();

if(userIds == null || userIds.isEmpty()){
return Collections.emptyList();
}

// 중복 제거
userIds = userIds.stream().distinct().toList();
final Map<String, String> params = createQueryParams(userIds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@RequiredArgsConstructor
public class ClapEventListener {

private final RestTemplate restTemplate;
private final RestTemplate restTemplate = new RestTemplate();
private final HttpHeadersUtils headersUtils;

private final StampService stampService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ public static class ClapAlarmRequest {
@Schema(description = "알림 제목")
@NotNull
private String title;

@Schema(description = "알림 내용")
@NotNull
private String content;

@Schema(description = "알림 카테고리")
@NotNull
private String category;

@Schema(description = "딥링크")
private String deepLink;

Expand Down