diff --git a/README.md b/README.md
index a9dae023b..36286e710 100644
--- a/README.md
+++ b/README.md
@@ -10,9 +10,8 @@
## λ§ν¬
-- [π‘ νλ‘μ νΈ μ¬μ΄νΈ](http://issue-tracker.online)
+- [π‘ νλ‘μ νΈ μ¬μ΄νΈ](https://www.issue-tracker.online)
- [πββ¬ Github λ§ν¬](https://github.com/codesquad-masters2025-team05/issue-tracker.git)
-- [π« Jira λ§ν¬](https://jqk1797.atlassian.net/jira/software/projects/CS/summary?atlOrigin=eyJpIjoiZWNkM2RjNjUyMmJlNDcyMjkwYjFhNTAxOGViMDk1NTciLCJwIjoiaiJ9)
- [π Notion λ§ν¬](https://flowery-unicorn-313.notion.site/CodeSquard-team05-1909003424f180438a2dd668361f3bf4?pvs=4)
## λΈλμΉ κ΅¬μ‘°
@@ -34,31 +33,16 @@ main β μ΅μ’
λ°°ν¬ λΈλμΉ
- MySQL
- JDBC
- GitHub Actions (CI/CD)
-- AWS EC2, RDS
+- AWS EC2, RDS, S3
- Ngnix
-### π νλ‘μ νΈ κ΅¬μ‘°
+### π μμ€ν
μν€ν
μ²
+
+
-```aiignore
-src/
-βββ main/
- βββ java/
- β βββ com.team5.issue_tracker/
- β βββ common/ # κ³΅ν΅ μ νΈ, μμΈ, μλ΅ μ²λ¦¬ λ±
- β β
- β βββ issue/ # μ΄μ κ΄λ ¨ λͺ¨λ
- β β
- β βββ label/
- β β
- β βββ milestone/ # λ§μΌμ€ν€ κ΄λ ¨ λͺ¨λ
- β β
- β βββ user/ # μ¬μ©μ κ΄λ ¨ λͺ¨λ
- β
- βββ resources/
- βββ application.yml # μ€μ νμΌ
- βββ schema.sql # λ°μ΄ν° λ² μ΄μ€
-```
+### π ERD
+
---
@@ -108,4 +92,4 @@ src/
```
----
\ No newline at end of file
+---
diff --git a/backend/src/main/java/com/team5/issue_tracker/comment/service/CommentService.java b/backend/src/main/java/com/team5/issue_tracker/comment/service/CommentService.java
index d6a385561..0fa7d8e42 100644
--- a/backend/src/main/java/com/team5/issue_tracker/comment/service/CommentService.java
+++ b/backend/src/main/java/com/team5/issue_tracker/comment/service/CommentService.java
@@ -33,13 +33,13 @@ public Long addComment(Long issueId, CommentRequest request, Long userId) {
public void editComment(Long commentId, CommentRequest updateCommentRequest, Long userId) {
validateUserExists(userId);
- if(!commentId.equals(userId)){
- throw new NotFoundException(ErrorCode.COMMENT_NOT_FOUND);
- }
-
Comment comment = commentRepository.findById(commentId)
.orElseThrow(() -> new NotFoundException(ErrorCode.COMMENT_NOT_FOUND));
+ if(!comment.getUserId().equals(userId)){
+ throw new NotFoundException(ErrorCode.USER_NOT_FOUND);
+ }
+
comment.setContent(updateCommentRequest.getContent());
comment.setUpdatedAt(Instant.now());
commentRepository.save(comment);
diff --git a/backend/src/main/java/com/team5/issue_tracker/issue/service/IssueService.java b/backend/src/main/java/com/team5/issue_tracker/issue/service/IssueService.java
index 55784fdea..70bcc7055 100644
--- a/backend/src/main/java/com/team5/issue_tracker/issue/service/IssueService.java
+++ b/backend/src/main/java/com/team5/issue_tracker/issue/service/IssueService.java
@@ -203,8 +203,9 @@ private void validateUserExists(Long userId) {
private void validateUserOwnsIssue(Long userId, Long issueId) {
validateIssueExists(issueId);
validateUserExists(userId);
+ Issue issue = issueRepository.findById(issueId).get();
- if (issueId.equals(userId)) {
+ if (!issue.getUserId().equals(userId)) {
throw new NotFoundException(ErrorCode.ISSUE_NOT_FOUND);
}
}