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

서포터가 선택완료 된 후 기간 만료가 되면 3일 뒤 자동 리뷰 완료로 상태 변경하는 기능 구현 #727

Open
wants to merge 7 commits into
base: dev/BE
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
refactor: 비동기 제거
cookienc committed Feb 20, 2024
commit 6879cd82e0903e6b1f3464cfaa173fd133e65ef3
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package touch.baton.common.schedule.deadline.command.service;

import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import touch.baton.common.schedule.deadline.command.repository.RunnerPostDeadlineCommandRepository;
import touch.baton.common.schedule.deadline.command.repository.DeadlineOutboxCommandRepository;
import touch.baton.common.schedule.deadline.command.exception.ScheduleBusinessException;
import touch.baton.common.schedule.deadline.command.repository.DeadlineOutboxCommandRepository;
import touch.baton.common.schedule.deadline.command.repository.RunnerPostDeadlineCommandRepository;
import touch.baton.common.schedule.deadline.query.repository.RunnerPostDeadlineQueryRepository;
import touch.baton.domain.runnerpost.command.RunnerPost;

@@ -29,7 +28,6 @@ public RunnerPost joinBySupporter(final Long runnerPostId) {
.orElseThrow(() -> new ScheduleBusinessException(String.format("RunnerPost를 찾을 수 없습니다. runnerPostId=%s",runnerPostId)));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

마지막 컴마 뒤에 띄어쓰기
밑에 함수도 마찬가지

}

@Async
public void finishReview(final Long runnerPostId) {
final RunnerPost findRunnerPost = runnerPostDeadlineQueryRepository.joinSupporterByRunnerPostIdWithLock(runnerPostId)
.orElseThrow(() -> new ScheduleBusinessException(String.format("RunnerPost를 찾을 수 없습니다. runnerPostId=%s",runnerPostId)));

This file was deleted.