refactor: unify data preparations and research input snapshots
Deploy production / deploy (push) Successful in 53s
Deploy production / deploy (push) Successful in 53s
This commit is contained in:
@@ -57,7 +57,11 @@ class Assets:
|
||||
"view": ViewSpec,
|
||||
"workflow": WorkflowSpec,
|
||||
}[body.kind]
|
||||
content = schema.model_validate(body.content).model_dump(mode="json")
|
||||
parsed = schema.model_validate(body.content)
|
||||
if body.kind == "feature":
|
||||
from ..preparations.service import Preparations
|
||||
await Preparations(self.db).bind(parsed)
|
||||
content = parsed.model_dump(mode="json")
|
||||
if body.kind == "workflow":
|
||||
from .workflows import validate_graph
|
||||
|
||||
|
||||
Reference in New Issue
Block a user