Skip to content

Commit

Permalink
refactor: Trip 기본 이미지 URL 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
mcodnjs committed Jul 27, 2023
1 parent 102f24b commit 3403cc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/main/java/hanglog/trip/domain/Trip.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
@Where(clause = "status = 'USABLE'")
public class Trip extends BaseEntity {

private static final String DEFAULT_IMAGE_URL = "https://github.com/woowacourse-teams/2023-hang-log/assets/64852591/65607364-3bf7-4920-abd1-edfdbc8d4df0";

@Id
@GeneratedValue(strategy = IDENTITY)
private Long id;
Expand Down Expand Up @@ -73,7 +75,7 @@ public static Trip of(final String title, final LocalDate startDate, final Local
return new Trip(
null,
title,
"https://github.com/woowacourse-teams/2023-hang-log/assets/64852591/65607364-3bf7-4920-abd1-edfdbc8d4df0",
DEFAULT_IMAGE_URL,
startDate,
endDate,
"",
Expand Down

0 comments on commit 3403cc9

Please sign in to comment.