Update parameter validations

This commit is contained in:
Agustin Godnic 2023-08-14 17:16:39 -03:00
parent 97e4dec5a2
commit 3123bccb98
1 changed files with 1 additions and 1 deletions

View File

@ -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) {