Skip to content

Commit

Permalink
Fix: 포트폴리오 이름 필드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
yumzen committed Sep 20, 2024
1 parent 8e70d15 commit 3081021
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public record ApplyRes(
Long portfolioId,

@Nullable
String portfolioTitle,
String portfolioName,

Boolean isPrivate,

Expand Down Expand Up @@ -68,7 +68,7 @@ public static ApplyRes of(Apply apply) {
.memberId(apply.getMember().getId())
.leaderName(apply.getTeam().getMember().getName())
.portfolioId(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getId() : null)
.portfolioTitle(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getTitle() : null)
.portfolioName(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getPortfolioData().portfolioName() : null)
.isPrivate(apply.getPortfolioInfo().isPrivate())
.body(apply.getBody())
.status(apply.getStatus().getDescription())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

public record SimplePortfolioRes(
Long PortfolioId,
String PortfolioTitle,
String PortfolioName,
LocalDateTime modifiedAt
) {
public static SimplePortfolioRes of(Portfolio portfolio) {
return new SimplePortfolioRes(
portfolio.getId(),
portfolio.getTitle(),
portfolio.getPortfolioData().portfolioName(),
portfolio.getModifiedAt()
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public class Portfolio extends BaseTimeEntity {
@Column(name = "portfolio_id", nullable = false, columnDefinition = "bigint")
private Long id;

@Column(name = "title", nullable = false, columnDefinition = "varchar(50)")
private String title;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "member_id")
private Member member;
Expand Down

0 comments on commit 3081021

Please sign in to comment.