diff --git a/packages/shared/lib/api/sqle/service/common.d.ts b/packages/shared/lib/api/sqle/service/common.d.ts index a58bbad74..8e3232b54 100644 --- a/packages/shared/lib/api/sqle/service/common.d.ts +++ b/packages/shared/lib/api/sqle/service/common.d.ts @@ -403,7 +403,7 @@ export interface IAuditTaskSQLResV1 { number?: number; - rollback_sql?: string; + rollback_sqls?: string[]; } export interface IAuditTasksGroupResV1 { diff --git a/packages/shared/lib/api/sqle/service/workflow/index.ts b/packages/shared/lib/api/sqle/service/workflow/index.ts index 80a58545c..3590da223 100644 --- a/packages/shared/lib/api/sqle/service/workflow/index.ts +++ b/packages/shared/lib/api/sqle/service/workflow/index.ts @@ -254,7 +254,7 @@ class WorkflowService extends ServiceBase { delete paramsData.workflow_id; return this.post( - `/v1/projects/${project_name}/workflows/${workflow_id}/rollback`, + `/v1/projects/${project_name}/workflows/${workflow_id}/create_rollback_workflow`, paramsData, options );