mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
add created_at return in publish workflow
This commit is contained in:
@ -206,10 +206,11 @@ class PublishedWorkflowApi(Resource):
|
||||
Publish workflow
|
||||
"""
|
||||
workflow_service = WorkflowService()
|
||||
workflow_service.publish_workflow(app_model=app_model, account=current_user)
|
||||
workflow = workflow_service.publish_workflow(app_model=app_model, account=current_user)
|
||||
|
||||
return {
|
||||
"result": "success"
|
||||
"result": "success",
|
||||
"created_at": TimestampField().format(workflow.created_at)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user