Skip to content

Commit

Permalink
Correctly check new recovery validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
BartNijland91 committed Nov 8, 2021
1 parent c5f9708 commit b8bcc87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CheckNewRecoveryValidityUseCaseImpl(
val recoveryGreencardRevisedValidityLaunchDate = OffsetDateTime.ofInstant(Instant.parse(recoveryGreencardRevisedValidityLaunchDateString), ZoneId.of("UTC"))

// Only start checking if local flag is set to true and the launch date is after the current date
if (persistenceManager.getShouldCheckRecoveryGreenCardRevisedValidity() && recoveryGreencardRevisedValidityLaunchDate.isAfter(
if (persistenceManager.getShouldCheckRecoveryGreenCardRevisedValidity() && recoveryGreencardRevisedValidityLaunchDate.isBefore(
OffsetDateTime.now(clock))) {

val allEvents = holderDatabase.eventGroupDao().getAll()
Expand Down

0 comments on commit b8bcc87

Please sign in to comment.