Skip to content

Commit

Permalink
fix: unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Aug 2, 2024
1 parent 642428a commit 1e7c6f1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ReviewFindUseCase {
private final OrderQueryService orderQueryService;
private final JwtUtil jwtUtil;

public List<ReviewInfo> findAllReviews(String accessToken, Long menuId) {
public List<ReviewInfo> findAllReviews(String accessToken) {

String email = jwtUtil.getEmail(accessToken);
User myUser = userQueryService.findByEmail(email);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ReviewController {
private final ReviewSaveUseCase reviewSaveUseCase;

// 리뷰 조회
@GetMapping("/{menuId}")
@GetMapping
@ApiResponses(
value = {
@ApiResponse(
Expand All @@ -40,11 +40,10 @@ public class ReviewController {
)
@Operation(summary = "전체 리뷰 확인 API", description = "전체 리뷰 확인 API 입니다.")
public ApplicationResponse<List<ReviewInfo>> getReviewInfo(
@RequestHeader(AuthConsts.ACCESS_TOKEN_HEADER) String accessToken,
@PathVariable Long menuId
@RequestHeader(AuthConsts.ACCESS_TOKEN_HEADER) String accessToken
) {

List<ReviewInfo> infos = reviewFindUseCase.findAllReviews(accessToken, menuId);
List<ReviewInfo> infos = reviewFindUseCase.findAllReviews(accessToken);
return ApplicationResponse.ok(infos);
}

Expand Down
4 changes: 2 additions & 2 deletions api-module/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ security:
jwt:
secret: aGFuZXVtLWZvb2Rnby1qd3Qtc2VjcmV0LWtleQo=
token:
access-expiration-time: 86400000 # 24*60*60*1000 = 1일
refresh-expiration-time: 604800000 # 7*24*60*60*1000 = 7일
access-expiration-time: 1209600000 # 14*24*60*60*1000 = 14일
refresh-expiration-time: 2592000000 # 30*24*60*60*1000 = 30일

logging:
level:
Expand Down
4 changes: 2 additions & 2 deletions api-module/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ spring:
config:
activate:
on-profile: local
import: application-local.yml, application-redis.yml, application-oauth.yml, application-s3.yml
import: application-local.yml, application-redis.yml, application-oauth.yml, application-s3.yml, application-payment.yml

---
spring:
config:
activate:
on-profile: prod
import: application-prod.yml, application-redis.yml, application-oauth.yml, application-s3.yml
import: application-prod.yml, application-redis.yml, application-oauth.yml, application-s3.yml, application-payment.yml

0 comments on commit 1e7c6f1

Please sign in to comment.