Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] build ERROR 조치 #137

Merged
merged 1 commit into from
Jan 14, 2025
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 @@ -17,6 +17,7 @@
import site.billbill.apiserver.common.response.BaseResponse;
import site.billbill.apiserver.common.utils.jwt.JWTUtil;

import java.io.IOException;
import java.util.List;

@Slf4j
Expand Down Expand Up @@ -146,7 +147,7 @@ public BaseResponse<String> updatePostController(@PathVariable(value = "postId",
@Operation(summary = "리뷰작성", description = "리뷰 작성")
@PostMapping("/reviews/{postId}")
public BaseResponse<PostsResponse.ReviewIdResponse> reviewPostController(@PathVariable(value = "postId", required = true) String postId,
@RequestBody @Valid PostsRequest.ReviewRequest request) {
@RequestBody @Valid PostsRequest.ReviewRequest request) throws IOException {
String userId = "";
if (MDC.get(JWTUtil.MDC_USER_ID) != null) {
userId = MDC.get(JWTUtil.MDC_USER_ID);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public void findUserForReviews(){
PushRequest request=PushRequest.builder()
.userId(result.getUser().getUserId())
.title("물건을 잘 이용하셨나요?")
.pushType(PushType.REVIEW)
.pushType(PushType.REVIEW_ALERT)
.content(result.getUser().getNickname()+"님! 이용하신 "+result.getItem().getTitle()+"는 어떠셨나요? 이용 후기를 남겨주세요!")
.moveToId(result.getItem().getId())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public List<PostsResponse.FindUsersForReviewsResponse> findUsersForReviews(){
.join(qAlarmLog)
.on(qAlarm.alarmSeq.eq(qAlarmLog.alarmSeq))
.where(
qAlarm.pushType.eq(PushType.REVIEW), // push_type이 REVIEW
qAlarm.pushType.eq(PushType.REVIEW_ALERT), // push_type이 REVIEW
qAlarm.moveToId.eq(qBorrowHistJpa.item.id), // move_to_id와 item_id가 동일
qAlarmLog.userId.eq(qBorrowHistJpa.borrower.userId) // 같은 user_id가 alarm_log에 존재
)
Expand Down
Loading