Skip to content

Commit

Permalink
Fix: #187 서비스 단 메소드에서 pgreq 상태 분기 로직 재수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJae-H committed Nov 1, 2024
1 parent 5f381de commit 594373c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public Boolean finishPGRESByFrontend(Long userId){
Optional<PictureGenerateRequest> pgreq = pictureGenerateRequestRepository.findTop1ByRequesterOrderByIdDesc(foundUser);
if (pgreq.isPresent()){
PictureGenerateRequest foundpgreq = pgreq.get();
if(foundpgreq.getPictureGenerateRequestStatus().equals(PictureGenerateRequestStatus.AWAIT_USER_VERIFICATION)){
if(foundpgreq.getPictureGenerateRequestStatus().equals(PictureGenerateRequestStatus.MATCH_TO_ADMIN)){
Optional<PictureGenerateResponse> pgres = pictureGenerateResponseRepository.findByRequest(pgreq.get());
if(pgres.isPresent()) {
PictureGenerateResponse foundpgres = pgres.get();
Expand Down

0 comments on commit 594373c

Please sign in to comment.