Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Add “CREATED” and currentStageId to task status field upon creation
Tianzhou Chen33d2de8e0ea6
diff --git a/frontend/src/miragejs/routes/index.js b/frontend/src/miragejs/routes/index.jsindex 63c5c78260..9c97c97150 100644--- a/frontend/src/miragejs/routes/index.js+++ b/frontend/src/miragejs/routes/index.js@@ -79,10 +79,13 @@ export default function routes() {this.post("/task", function (schema, request) {const ts = Date.now();+ const attrs = this.normalizedRequestAttrs("task");const newTask = {- ...this.normalizedRequestAttrs("task"),+ ...attrs,createdTs: ts,lastUpdatedTs: ts,+ status: "CREATED",+ currentStageId: attrs.stageProgressList[0].id,workspaceId: WORKSPACE_ID,};return schema.tasks.create(newTask);