Skip to content

Commit

Permalink
Update parameter validations
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustin Godnic committed Aug 14, 2023
1 parent 97e4dec commit 3123bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/middleware/extract_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func ExtractTimeSpan(c *fiber.Ctx, l *zap.Logger) (string, error) {

// isValidTimeSpan check that the timeSpan is valid.
func isValidTimeSpan(timeSpan string) bool {
return regexp.MustCompile(`^1d$|^1w$|^1mo$`).MatchString(timeSpan)
return regexp.MustCompile(`^1d$|^1w$|^1mo$|^3mo$`).MatchString(timeSpan)
}

func ExtractSampleRate(c *fiber.Ctx, l *zap.Logger) (string, error) {
Expand Down

0 comments on commit 3123bcc

Please sign in to comment.