Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Fix the task creation, still receive the task status from the client

天舟43fa317b09ec
diff --git a/api/task.go b/api/task.go
index e90980b15a..07f5790b20 100644
--- a/api/task.go
+++ b/api/task.go
@@ -128,10 +128,9 @@ type TaskCreate struct {
DatabaseId *int `jsonapi:"attr,databaseId"`
// Domain specific fields
- Name string `jsonapi:"attr,name"`
- // This is derived from the environment policy
- Status TaskStatus
- Type TaskType `jsonapi:"attr,type"`
+ Name string `jsonapi:"attr,name"`
+ Status TaskStatus `jsonapi:"attr,status"`
+ Type TaskType `jsonapi:"attr,type"`
// Payload is dirived from fields below it
Payload string
Statement string `jsonapi:"attr,statement"`