Skip to content

Commit

Permalink
fix: path variable 롤백
Browse files Browse the repository at this point in the history
  • Loading branch information
mangowhoiscloud committed Nov 12, 2024
1 parent 651ca08 commit d3f35b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import aimo.backend.domains.member.entity.Member;
import aimo.backend.domains.post.dto.parameter.SavePostParameter;
import aimo.backend.domains.post.model.Category;
import aimo.backend.domains.privatePost.model.ContentLength;
import aimo.backend.domains.vote.entity.Vote;
import aimo.backend.domains.vote.model.Side;
import aimo.backend.domains.privatePost.model.OriginType;
Expand Down Expand Up @@ -115,8 +116,8 @@ public Integer getCommentsCount() {
}

public String getPreview(){
return summaryAi.length() > PREVIEW_CONTENT_LENGTH.getValue() ?
summaryAi.substring(0, PREVIEW_CONTENT_LENGTH.getValue()) + "..." : summaryAi;
return summaryAi.length() > PREVIEW_LENGTH.getValue() ?
summaryAi.substring(0, PREVIEW_LENGTH.getValue()) + "..." : summaryAi;
}

public void delete() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import aimo.backend.common.entity.BaseEntity;
import aimo.backend.domains.privatePost.dto.parameter.JudgementParameter;
import aimo.backend.domains.privatePost.model.ContentLength;
import aimo.backend.domains.privatePost.model.OriginType;
import aimo.backend.domains.member.entity.Member;
import jakarta.persistence.CascadeType;
Expand Down Expand Up @@ -88,11 +89,11 @@ public void unpublish() {
}

public String getPreview() {
return summaryAi.length() > PREVIEW_CONTENT_LENGTH.getValue() ?
summaryAi.substring(0, PREVIEW_CONTENT_LENGTH.getValue()) + "..." : summaryAi;
return summaryAi.length() > ContentLength.PREVIEW_LENGTH.getValue() ?
summaryAi.substring(0, ContentLength.PREVIEW_LENGTH.getValue()) + "..." : summaryAi;
}

public static PrivatePost toEntity(JudgementParameter parameter, Member member, TextRecord textRecord) {
public static PrivatePost from(JudgementParameter parameter, Member member, TextRecord textRecord) {
return PrivatePost.builder()
.title(parameter.title())
.member(member)
Expand Down

0 comments on commit d3f35b2

Please sign in to comment.