Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Commit

Permalink
increase maxAhead limit to 1 year
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Jan 28, 2024
1 parent b6d235e commit 43fe725
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/dofusdu/boundary/OfferingResourceV1.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class OfferingResourceV1 {
private BonusTypeRepository bonusTypeRepository;

private final Integer version = 1;
private final Integer maxAhead = 35;
private final Integer maxAhead = 370;
private final ErrorProducer errorProducer;

@ConfigProperty(name = "timezone")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

public class DateNotFoundError extends Error {
public DateNotFoundError(String firstDate) {
super(Response.Status.NOT_FOUND.getStatusCode(), "Date not available.", "Starting at " + firstDate + ", currently ending " + LocalDate.now().plusDays(35).toString() + ".");
super(Response.Status.NOT_FOUND.getStatusCode(), "Date not available.", "Starting at " + firstDate + ", currently ending " + LocalDate.now().plusDays(370).toString() + ".");
}
}
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ quarkus.log.console.enable=true
quarkus.log.console.format=%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] (%t) %s%e%n

almanax.first.date=2012-09-18
almanax.max.ahead=35
almanax.max.ahead=370

quarkus.swagger-ui.enable=true
quarkus.swagger-ui.always-include=true
Expand Down

0 comments on commit 43fe725

Please sign in to comment.