feat(chalice): fixed update alerts
This commit is contained in:
parent
9e1f244480
commit
65f6d403df
1 changed files with 1 additions and 2 deletions
|
|
@ -363,11 +363,10 @@ class AlertSchema(BaseModel):
|
|||
|
||||
@root_validator(pre=True)
|
||||
def transform_alert(cls, values):
|
||||
values["seriesId"] = None
|
||||
if isinstance(values["query"]["left"], int):
|
||||
values["seriesId"] = values["query"]["left"]
|
||||
values["query"]["left"] = AlertColumn.custom
|
||||
else:
|
||||
values["seriesId"] = None
|
||||
|
||||
return values
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue