task.js(fix): "history" is not defined

This commit is contained in:
nothing committed 2023-03-11 13:45:46 +08:00
1 parent 40cc23d74f
commit 30dfef6625
1 file changed
+3 -1
+3 -1
View File
@@ -379,6 +379,8 @@ class TaskService extends Service {
}
delete history.taskEditedUserList;
await trx('task_history', this.ctx).insert(history);
return history;
}
async saveWorkFlowExecHistory(trx, taskInfo, currentNode, endNode, line, nextLineList, taskEditUserList, history) {
@@ -430,7 +432,7 @@ class TaskService extends Service {
const currentNode = nodeList.find(e => e.id === taskInfo.taskConfigId);
taskFormInput = taskFormInput || taskInfo.taskFormInput;
await this.saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, type);
const history = await this.saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, type);
// 未配置连线时,默认添加拒绝连线到end节点
if (endNode && !lines.length) {