Skip to content

Commit

Permalink
Merge pull request #76 from Unithon11th-Team5/feat/#75
Browse files Browse the repository at this point in the history
fix: fix future to future or present
  • Loading branch information
chominho96 authored Apr 6, 2024
2 parents f151fb8 + 0dd86c1 commit 7ef9696
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package unithon.uniletter.event.dto;

import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.FutureOrPresent;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
Expand All @@ -16,7 +16,7 @@ public record EventAddRequest(
@NotNull
EventType type,

@Future
@FutureOrPresent
LocalDate plannedAt
) {
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package unithon.uniletter.message.dto;

import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.FutureOrPresent;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
Expand Down Expand Up @@ -33,6 +33,6 @@ public class MessageRequest {
private EventType type;

@NotNull
@Future
@FutureOrPresent
private LocalDate sendPlannedAt;
}

0 comments on commit 7ef9696

Please sign in to comment.