remove `m` from timerange
Taylor committed
Nov 2, 2023 at 12:50 UTC
c9af5e1c8af1e4673b742a964aaf647619ca342b
1 file changed
+2
-2
backend/app/connectors/wazuh_indexer/schema/alerts.py
+2
-2
@@ -24,8 +24,8 @@ class AlertsSearchBody(BaseModel):
24
25
@validator("timerange")
26
def validate_timerange(cls, value):
27
- if value[-1] not in ("h", "d", "w", "m"):
28
- raise ValueError("Invalid timerange format. The string should end with either 'h', 'd', 'w', or 'm'.")
27
+ if value[-1] not in ("h", "d", "w"):
28
+ raise ValueError("Invalid timerange format. The string should end with either 'h', 'd', 'w'.")
29
30
# Optionally, you can check that the prefix is a number
31
if not value[:-1].isdigit():