fix workflow api return

This commit is contained in:
takatost
2024-03-04 17:23:27 +08:00
parent 3086893ee7
commit df753e84a3
12 changed files with 434 additions and 85 deletions

View File

@ -5,8 +5,8 @@ from libs.helper import TimestampField
workflow_fields = {
'id': fields.String,
'graph': fields.Nested(simple_account_fields, attribute='graph_dict'),
'features': fields.Nested(simple_account_fields, attribute='features_dict'),
'graph': fields.Raw(attribute='graph_dict'),
'features': fields.Raw(attribute='features_dict'),
'created_by': fields.Nested(simple_account_fields, attribute='created_by_account'),
'created_at': TimestampField,
'updated_by': fields.Nested(simple_account_fields, attribute='updated_by_account', allow_null=True),