This commit is contained in:
Jam committed 2023-05-08 10:19:23 +08:00
1 parent aad16f5806
commit f04164dfe1
1 file changed
+2 -2
+2 -2
View File
@@ -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) {