Skip to content

Commit f04164d

Browse files
committed
fixbug
1 parent aad16f5 commit f04164d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/service/task.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ class TaskService extends Service {
380380
delete history.taskEditedUserList;
381381
await trx('task_history', this.ctx).insert(history);
382382

383-
return history;
383+
return {taskHistory, history};
384384
}
385385

386386
async saveWorkFlowExecHistory(trx, taskInfo, currentNode, endNode, line, nextLineList, taskEditUserList, history) {
@@ -432,7 +432,7 @@ class TaskService extends Service {
432432
const currentNode = nodeList.find(e => e.id === taskInfo.taskConfigId);
433433
taskFormInput = taskFormInput || taskInfo.taskFormInput;
434434

435-
const history = await this.saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, type);
435+
const {taskHistory, history} = await this.saveCurrentNodeExecHistory(trx, taskInfo, currentNode, taskFormInput, taskComment, lines, type);
436436

437437
// 未配置连线时,默认添加拒绝连线到end节点
438438
if (endNode && !lines.length) {

0 commit comments

Comments
 (0)