Skip to content

Commit

Permalink
feat(api): Allow more data to be requested via forecast endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcourant committed Apr 12, 2024
1 parent 807e455 commit 84a7984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controller/forecast.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func (c *Controller) getForecast(ctx echo.Context) error {
if endDate.Before(now) {
return c.badRequest(ctx, "invalid end time provided, end time must be in the future")
}
if endDate.After(now.AddDate(0, 3, 0)) {
return c.badRequest(ctx, "you are not allowed for forecast more than 3 months into the future")
if endDate.After(now.AddDate(0, 12, 0)) {
return c.badRequest(ctx, "you are not allowed for forecast more than 12 months into the future")
}

bankAccountId, err := strconv.ParseUint(ctx.Param("bankAccountId"), 10, 64)
Expand Down

0 comments on commit 84a7984

Please sign in to comment.