Skip to content

Commit

Permalink
Merge pull request #11 from Sam3Star/gayeong
Browse files Browse the repository at this point in the history
fix: null point exception
  • Loading branch information
GayeongKimm authored Jun 25, 2024
2 parents 5bf5edb + 3aeec59 commit 240fc6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ public class RoutineEntity extends BaseTimeEntity {
private State state;

@NotNull
@Column(name = "start_at")
private LocalDate startAt;

@NotNull
@Column(name = "end_at")
private LocalDate endAt;

public void updateRoutine(String name, ImportanceEnum importanceEnum, ColorEnum colorEnum, LocalDate startAt, LocalDate endAt){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public void generate(RoutineGenerateReq req){
.importanceEnum(req.getImportanceEnum())
.colorEnum(req.getColorEnum())
.state(State.active)
.startAt(req.getStartAt())
.endAt(req.getEndAt())
.build());
}

Expand Down

0 comments on commit 240fc6f

Please sign in to comment.