diff --git a/app/service/task.js b/app/service/task.js index 667cc9f..f226719 100644 --- a/app/service/task.js +++ b/app/service/task.js @@ -380,7 +380,7 @@ class TaskService extends Service { delete history.taskEditedUserList; await trx('task_history', this.ctx).insert(history); - return history; + return {taskHistory, history}; } async saveWorkFlowExecHistory(trx, taskInfo, currentNode, endNode, line, nextLineList, taskEditUserList, history) { @@ -432,7 +432,7 @@ class TaskService extends Service { const currentNode = nodeList.find(e => e.id === taskInfo.taskConfigId); taskFormInput = taskFormInput || taskInfo.taskFormInput; - const history = await this.saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, type); + const {taskHistory, history} = await this.saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, type); // 未配置连线时,默认添加拒绝连线到end节点 if (endNode && !lines.length) {