Skip to content

Commit

Permalink
Merge pull request #187 from dnd-side-project/fix/#183
Browse files Browse the repository at this point in the history
Fix resource missing error
  • Loading branch information
miraexhoi authored Oct 13, 2024
2 parents cee1a19 + 4da5ac9 commit 6f51776
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public static Word fromCreateRequest(AdminWordRequestDto dto) {
.meaning(dto.meaning())
.categoryName(Category.findBy(dto.category()).getName())
.example(dto.example())
.resource(dto.resource())
.build();
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/dnd/spaced/domain/word/domain/Word.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ private Word(
String englishPronunciation,
String meaning,
String categoryName,
String example
String example,
String resource
) {
validateContent(name, meaning, example);

Expand All @@ -69,6 +70,7 @@ private Word(
this.meaning = meaning;
this.category = Category.findBy(categoryName);
this.example = example;
this.resource = resource;
}

public void addComment() {
Expand Down

0 comments on commit 6f51776

Please sign in to comment.