Skip to content

Commit

Permalink
Merge pull request #80 from SWEET-DEVELOPERS/feature/#79-room
Browse files Browse the repository at this point in the history
[fix] 선물방 이미지 default값 추가
  • Loading branch information
hysong4u authored Jan 16, 2024
2 parents c72dbfd + 0ce7c7a commit c28881b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/sopt/sweet/domain/room/entity/Room.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
public class Room extends BaseTimeEntity {

private static final int DEFAULT_NUMBER = 1;
private static final String DEFAULT_IMAGE_URL = "https://sweet-gift-bucket.s3.ap-northeast-2.amazonaws.com/sweet.png";

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down Expand Up @@ -49,7 +50,7 @@ public class Room extends BaseTimeEntity {
@Builder
public Room(String gifteeName, String imageUrl, LocalDateTime deliveryDate, LocalDateTime tournamentStartDate, TournamentDuration tournamentDuration, String invitationCode, Member host) {
this.gifteeName = gifteeName;
this.imageUrl = imageUrl;
this.imageUrl = DEFAULT_IMAGE_URL;
this.gifterNumber = DEFAULT_NUMBER;
this.deliveryDate = deliveryDate;
this.tournamentStartDate = tournamentStartDate;
Expand Down

0 comments on commit c28881b

Please sign in to comment.