Skip to content

Commit

Permalink
chore: google credential 부분 주석 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Oct 26, 2024
1 parent cabac81 commit 75176c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ResponseEntity<UpdateMemberInfoResponse> updateMemberInfo(@MemberId Long
@Override
@PostMapping("/feedback")
public ResponseEntity<Void> createFeedback(@MemberId Long memberId, @Valid @RequestBody CreateFeedbackRequest createFeedbackRequest) {
memberService.createFeedback(memberId, createFeedbackRequest);
// memberService.createFeedback(memberId, createFeedbackRequest);
return null;
}
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import org.layer.domain.analyze.repository.AnalyzeRepository;
import org.layer.domain.auth.controller.dto.SignUpRequest;
import org.layer.domain.common.time.Time;
import org.layer.domain.external.google.enums.SheetType;
import org.layer.domain.external.google.service.GoogleApiService;
import org.layer.domain.jwt.SecurityUtil;
import org.layer.domain.member.controller.dto.*;
import org.layer.domain.member.entity.Member;
Expand Down Expand Up @@ -46,7 +44,7 @@ public class MemberService {
private final RetrospectRepository retrospectRepository;
private final AnalyzeRepository analyzeRepository;

private final GoogleApiService googleApiService;
// private final GoogleApiService googleApiService;

private final SecurityUtil securityUtil;

Expand Down Expand Up @@ -74,14 +72,14 @@ public void checkIsNewMember(String socialId, SocialType socialType) {
}
}

public void createFeedback(Long memberId, CreateFeedbackRequest createFeedbackRequest) {
var foundMemberFeedback = findFeedback(memberId);
if (foundMemberFeedback.isEmpty()) {
return;
}
googleApiService.writeFeedback(SheetType.FEEDBACK, foundMemberFeedback.get(),
createFeedbackRequest.satisfaction(), createFeedbackRequest.description());
}
// public void createFeedback(Long memberId, CreateFeedbackRequest createFeedbackRequest) {
// var foundMemberFeedback = findFeedback(memberId);
// if (foundMemberFeedback.isEmpty()) {
// return;
// }
// googleApiService.writeFeedback(SheetType.FEEDBACK, foundMemberFeedback.get(),
// createFeedbackRequest.satisfaction(), createFeedbackRequest.description());
// }

@Transactional
public Member saveMember(SignUpRequest signUpRequest, MemberInfoServiceResponse memberInfo) {
Expand Down

0 comments on commit 75176c6

Please sign in to comment.