Skip to content

Commit

Permalink
better defaults for #103
Browse files Browse the repository at this point in the history
  • Loading branch information
5V715 authored and geirsagberg committed Apr 24, 2024
1 parent 2239dc3 commit 38d966c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package no.bekk.dbscheduler.ui.model;

import java.time.Instant;
import java.time.temporal.ChronoUnit;

public class TaskRequestParams {

Expand Down Expand Up @@ -55,8 +56,8 @@ public TaskRequestParams(
this.searchTermTaskInstance = searchTermTaskInstance;
this.taskNameExactMatch = taskNameExactMatch != null ? taskNameExactMatch : false;
this.taskInstanceExactMatch = taskInstanceExactMatch != null ? taskInstanceExactMatch : false;
this.startTime = startTime != null ? startTime : Instant.MIN;
this.endTime = endTime != null ? endTime : Instant.MAX;
this.startTime = startTime != null ? startTime : Instant.now().minus(50, ChronoUnit.DAYS);
this.endTime = endTime != null ? endTime : Instant.now().plus(50, ChronoUnit.DAYS);
this.refresh = refresh != null ? refresh : true;
}

Expand Down

0 comments on commit 38d966c

Please sign in to comment.