Skip to content

Commit

Permalink
Merge pull request #262 from Gongjakso/fix/contest
Browse files Browse the repository at this point in the history
fix : contest update 시 body 문자열 변환
  • Loading branch information
sycuuui authored Sep 30, 2024
2 parents ff3eae8 + bb42ef4 commit 802a644
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Contest extends BaseTimeEntity {

public void update(UpdateContestDto contest,String imgUrl){
this.title= (contest.title()==null) ? this.title : contest.title();
this.body= (contest.body()==null) ? this.body : contest.body();
this.body= (contest.body()==null) ? this.body : contest.body().replace("\n","<br/>").replace("\t","<t/>");;
this.contestLink= (contest.contestLink()==null) ? this.contestLink : contest.contestLink();
this.institution= (contest.institution()==null) ? this.institution : contest.institution();
this.startedAt= (contest.startedAt()==null) ? this.startedAt : contest.startedAt();
Expand Down

0 comments on commit 802a644

Please sign in to comment.