Update parameter validations
This commit is contained in:
parent
97e4dec5a2
commit
3123bccb98
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue