mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-28 01:33:31 +08:00
Fix field_validator mode in FlowBase model
This commit is contained in:
@ -41,7 +41,7 @@ class FlowBase(SQLModel):
|
||||
return None
|
||||
return dt.isoformat()
|
||||
|
||||
@field_validator("updated_at")
|
||||
@field_validator("updated_at", mode="before")
|
||||
def validate_dt(cls, v):
|
||||
if v is None:
|
||||
return v
|
||||
|
||||
Reference in New Issue
Block a user