refactor: 견적 제안 및 반려 알림 수정 - #78
Merged
Merged
Conversation
…into refactor/mover-estimate
…into refactor/mover-estimate
📝 WalkthroughWalkthrough견적 발송 및 반려 알림 생성을 트랜잭션 내부로 이동했습니다. 트랜잭션 결과는 알림 객체를 반환합니다. 커밋 후 반환된 알림을 비동기로 발송합니다. Changes견적 알림 처리
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/modules/estimate/mover/mover-estimate.service.ts`:
- Around line 259-278: Update the notification flow around createNotification
and sendNotification: use the transaction-supported notification creation path
with tx, and replace notificationService.sendNotification with
notificationSseService.sendNotification. Ensure the created NotificationItem
remains compatible with the send method’s argument type.
- Line 278: `notificationService`를 통한 `sendNotification` 호출을 `mover-estimate`
흐름에서 모두 제거하세요. `createNotification`이 이미
`notificationSseService.sendNotification`을 호출하므로 해당 중복 전송과 TypeScript 컴파일 오류가 함께
해결되도록 278행과 378행의 호출을 삭제하세요.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 354874b6-63b1-45d5-aeda-cc8176e40a81
📒 Files selected for processing (1)
src/modules/estimate/mover/mover-estimate.service.ts
wkdalswn11
reviewed
Aug 3, 2026
wkdalswn11
left a comment
Contributor
There was a problem hiding this comment.
견적 제안과 반려 모두 핵심 DB 작업과
createNotification(input, tx)를 동일 트랜잭션에 포함하고,
생성된 알림을 트랜잭션 결과로 반환한 뒤
커밋 이후 sendNotification()으로 SSE를 전송하도록
의도한 구조에 맞게 수정된 것 같습니다.
고생하셨습니다¡
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 작업 내용
✅ 변경 사항
🧪 테스트
테스트 방법
📷 스크린샷 (선택)
🔥 체크리스트
🙏 To Reviewer
Summary by CodeRabbit